quickjs-done-nextgen/tests/detect_module/1.js
Ben Noordhuis 8cd59bf7c4
Improve JS_DetectModule (#610)
It's still not infallible (I don't think it can ever be, the whole
premise is wrong) but hopefully it's a little less fallible now.

Fixes: https://github.com/quickjs-ng/quickjs/issues/606
2024-10-20 12:42:21 +02:00

2 lines
38 B
JavaScript

const p = Promise.resolve(42)
await p