Closed
Description
Version
v22.8.0
Platform
N/A
Subsystem
No response
What steps will reproduce the bug?
Create a repro.js
file:
await new Promise(() => {});
Run repro.js
How often does it reproduce? Is there a required condition?
Every time
What is the expected behavior? Why is that the expected behavior?
It should output the same as if the file was named repro.mjs
:
Warning: Detected unsettled top-level await at file:///repro.mjs:1
await new Promise(() => {});
^
What do you see instead?
Silently exits.
Additional information
Ref: #54930