Open absop opened 6 months ago
I think this is the same as https://github.com/quickjs-ng/quickjs/issues/340
I would like to point out that Node's handling of unhandled rejections and exit code depends on the version and the value passed with CLI option --unhandled-rejections
. The original issue seems to address an old version that is no longer supported officially. As of Node 16, the default value has been throw
(node#41184), and the old behavior is equivalent to it being warn
.
Test code
Run the code with qjs:
Run the code with node: