summaryrefslogtreecommitdiff
path: root/test/parallel/test-error-reporting.js
diff options
context:
space:
mode:
authorDivlo <contact@divlo.fr>2021-09-02 01:59:45 +0200
committerMichael Dawson <mdawson@devrus.com>2021-09-08 13:31:07 -0400
commit59d3d542d69f078cd1d9f50f26b83944c381724e (patch)
tree418aefbd529e5f7261626a3bc1d480d161c35756 /test/parallel/test-error-reporting.js
parent33b5107d13f3b5b01861ac7deb4253cfc3d84fc5 (diff)
downloadnode-new-59d3d542d69f078cd1d9f50f26b83944c381724e.tar.gz
errors: disp ver on fatal except that causes exit
Display Node.js version at the end of stacktraces on fatal exception that causes exit. Easier for debugging so you don't have to ask "what node version are you on?", it is directly in the error the user copy/paste from when asking for help. Fixes: https://github.com/nodejs/node/issues/29731 PR-URL: https://github.com/nodejs/node/pull/38332 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'test/parallel/test-error-reporting.js')
-rw-r--r--test/parallel/test-error-reporting.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-error-reporting.js b/test/parallel/test-error-reporting.js
index 75574641ec..6977c5f023 100644
--- a/test/parallel/test-error-reporting.js
+++ b/test/parallel/test-error-reporting.js
@@ -77,6 +77,5 @@ errExec('throws_error6.js', common.mustCall((err, stdout, stderr) => {
// Object that throws in toString() doesn't print garbage
errExec('throws_error7.js', common.mustCall((err, stdout, stderr) => {
- assert.match(stderr,
- /throw {\r?\n\^\r?\n{ toString: \[Function: toString] }\r?\n$/);
+ assert.match(stderr, /throw {\r?\n\^\r?\n{ toString: \[Function: toString] }\r?\n\r?\nNode\.js \S+\r?\n$/);
}));