Checkpoint before integration and package validation. Assisted-by: SurmAgent:unknown [read] [edit] [bash]
8 lines
255 B
JavaScript
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)
|