Files
sausage/userland/qjs/source/tests/dynamic_import_rejection_handled.js
T
surma d44f1d9677 Build separate native and WASI pipelines with shared multicall names
Checkpoint before integration and package validation.

Assisted-by: SurmAgent:unknown [read] [edit] [bash]
2026-11-12 09:36:27 +00:00

8 lines
255 B
JavaScript

/*---
flags: [qjs:track-promise-rejections]
---*/
// import() of a throwing module must not leak the module's internal rejection.
const error = await import("./fixture_throwing_module.js").then(() => 'ok', e => e)
print('Got this error:', error.message)