summaryrefslogtreecommitdiff
path: root/test/message
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-04-12 18:11:14 +0200
committerAnna Henningsen <anna@addaleax.net>2020-04-15 02:10:53 +0200
commit907ebdd76d45aa7f5dbd0972da79a959e6f34246 (patch)
tree56a5d7381b68db10e8a84cdf6e9bcaeb8b5a6c6d /test/message
parent9c25ab1d30b16fbc560d3abf22a971e9efb63f7a (diff)
downloadnode-new-907ebdd76d45aa7f5dbd0972da79a959e6f34246.tar.gz
process: suggest --trace-warnings when printing warning
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>
Diffstat (limited to 'test/message')
-rw-r--r--test/message/async_error_sync_esm.out1
-rw-r--r--test/message/esm_display_syntax_error.out1
-rw-r--r--test/message/esm_display_syntax_error_import.out1
-rw-r--r--test/message/esm_display_syntax_error_import_module.out1
-rw-r--r--test/message/esm_display_syntax_error_module.out3
-rw-r--r--test/message/esm_loader_not_found.out1
-rw-r--r--test/message/esm_loader_syntax_error.out1
-rw-r--r--test/message/v8_warning.out1
8 files changed, 9 insertions, 1 deletions
diff --git a/test/message/async_error_sync_esm.out b/test/message/async_error_sync_esm.out
index 6577fff694..abaa2524cf 100644
--- a/test/message/async_error_sync_esm.out
+++ b/test/message/async_error_sync_esm.out
@@ -1,4 +1,5 @@
(node:*) ExperimentalWarning: The ESM module loader is experimental.
+(Use `node --trace-warnings ...` to show where the warning was created)
Error: test
at one (*fixtures*async-error.js:4:9)
at two (*fixtures*async-error.js:17:9)
diff --git a/test/message/esm_display_syntax_error.out b/test/message/esm_display_syntax_error.out
index 778d901129..382d459c2e 100644
--- a/test/message/esm_display_syntax_error.out
+++ b/test/message/esm_display_syntax_error.out
@@ -1,4 +1,5 @@
(node:*) ExperimentalWarning: The ESM module loader is experimental.
+(Use `node --trace-warnings ...` to show where the warning was created)
file:///*/test/message/esm_display_syntax_error.mjs:2
await async () => 0;
^^^^^
diff --git a/test/message/esm_display_syntax_error_import.out b/test/message/esm_display_syntax_error_import.out
index e39744a049..d24891bd2c 100644
--- a/test/message/esm_display_syntax_error_import.out
+++ b/test/message/esm_display_syntax_error_import.out
@@ -1,4 +1,5 @@
(node:*) ExperimentalWarning: The ESM module loader is experimental.
+(Use `node --trace-warnings ...` to show where the warning was created)
file:///*/test/message/esm_display_syntax_error_import.mjs:5
notfound
^^^^^^^^
diff --git a/test/message/esm_display_syntax_error_import_module.out b/test/message/esm_display_syntax_error_import_module.out
index 0daaeff5b9..aaf65069bc 100644
--- a/test/message/esm_display_syntax_error_import_module.out
+++ b/test/message/esm_display_syntax_error_import_module.out
@@ -1,4 +1,5 @@
(node:*) ExperimentalWarning: The ESM module loader is experimental.
+(Use `node --trace-warnings ...` to show where the warning was created)
file:///*/test/fixtures/es-module-loaders/syntax-error-import.mjs:1
import { foo, notfound } from './module-named-exports.mjs';
^^^^^^^^
diff --git a/test/message/esm_display_syntax_error_module.out b/test/message/esm_display_syntax_error_module.out
index a1498f72c9..c22bf0437c 100644
--- a/test/message/esm_display_syntax_error_module.out
+++ b/test/message/esm_display_syntax_error_module.out
@@ -1,7 +1,8 @@
(node:*) ExperimentalWarning: The ESM module loader is experimental.
+(Use `node --trace-warnings ...` to show where the warning was created)
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:*:*) \ No newline at end of file
+ at Loader.moduleStrategy (internal/modules/esm/translators.js:*:*)
diff --git a/test/message/esm_loader_not_found.out b/test/message/esm_loader_not_found.out
index a054dacf2f..0949c4d0e3 100644
--- a/test/message/esm_loader_not_found.out
+++ b/test/message/esm_loader_not_found.out
@@ -1,4 +1,5 @@
(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
internal/modules/run_main.js:*
internalBinding('errors').triggerUncaughtException(
diff --git a/test/message/esm_loader_syntax_error.out b/test/message/esm_loader_syntax_error.out
index 9767a9c86c..cde6bd0aa8 100644
--- a/test/message/esm_loader_syntax_error.out
+++ b/test/message/esm_loader_syntax_error.out
@@ -1,4 +1,5 @@
(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;
diff --git a/test/message/v8_warning.out b/test/message/v8_warning.out
index 7943d0e9d6..b006af0518 100644
--- a/test/message/v8_warning.out
+++ b/test/message/v8_warning.out
@@ -1 +1,2 @@
(node:*) V8: *v8_warning.js:* Invalid asm.js: Invalid return type
+(Use `node --trace-warnings ...` to show where the warning was created)