mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Previously, this would trigger an unhandled rejection that the user cannot handle. Fixes: https://github.com/nodejs/node/issues/30205 PR-URL: https://github.com/nodejs/node/pull/30219 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
10 lines
443 B
Plaintext
10 lines
443 B
Plaintext
(node:*) ExperimentalWarning: The ESM module loader is experimental.
|
|
(node:*) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
|
|
file://*/test/fixtures/es-module-loaders/syntax-error.mjs:2
|
|
await async () => 0;
|
|
^^^^^
|
|
|
|
SyntaxError: Unexpected reserved word
|
|
at Loader.moduleStrategy (internal/modules/esm/translators.js:*:*)
|
|
at async link (internal/modules/esm/module_job.js:*:*)
|