Stalled top-level promise detection for TLA

Version

v18.0.0

Subsystem

modules

What steps will reproduce the bug?

create file 1.mjs with following content

await new Promise(() => {})

run it and check code returned by process with node 1.mjs && echo $?

What is the expected behavior?

I would like to be verbousely warned that script didn't reach it's end

What do you see instead?

process finished with error code 13, with nothing in console

> node 1.mjs && echo $?
13