mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Suggest using `--trace-warnings` or `--trace-deprecation` the first time a warning is emitted without a stack trace, similar to how we suggest `--trace-uncaught` when printing uncaught exceptions without a stack trace. PR-URL: https://github.com/nodejs/node/pull/32797 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
11 lines
515 B
Plaintext
11 lines
515 B
Plaintext
(node:*) ExperimentalWarning: The ESM module loader is experimental.
|
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
(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:*:*)
|