This behavior was introduced after the Top-Level Await proposal reached stage 3: https://github.com/tc39/proposal-top-level-await/pull/159