summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-pretty-custom-stack.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-09-23 19:38:12 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2019-12-06 02:10:58 +0100
commit6c40cb2aca89df4c7c0e3923d93024734dd49f2d (patch)
treeceb06cf66682bc843e8e0953cd8092a1179c46b5 /test/parallel/test-repl-pretty-custom-stack.js
parent51ccf1b5e90540a11c33866da15d4a7f52d7fddb (diff)
downloadandroid-node-v8-6c40cb2aca89df4c7c0e3923d93024734dd49f2d.tar.gz
android-node-v8-6c40cb2aca89df4c7c0e3923d93024734dd49f2d.tar.bz2
android-node-v8-6c40cb2aca89df4c7c0e3923d93024734dd49f2d.zip
repl: use better uncaught exceptions indicator
This switches "Thrown:" with "Uncaught" to outline clearer that the thrown error is not caught. PR-URL: https://github.com/nodejs/node/pull/29676 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-repl-pretty-custom-stack.js')
-rw-r--r--test/parallel/test-repl-pretty-custom-stack.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-repl-pretty-custom-stack.js b/test/parallel/test-repl-pretty-custom-stack.js
index 0d2ada134f..8f633a4d48 100644
--- a/test/parallel/test-repl-pretty-custom-stack.js
+++ b/test/parallel/test-repl-pretty-custom-stack.js
@@ -48,26 +48,26 @@ const tests = [
{
// test .load for a file that throws
command: `.load ${fixtures.path('repl-pretty-stack.js')}`,
- expected: 'Thrown:\nError: Whoops!--->\nrepl:*:*--->\nd (repl:*:*)' +
+ expected: 'Uncaught Error: Whoops!--->\nrepl:*:*--->\nd (repl:*:*)' +
'--->\nc (repl:*:*)--->\nb (repl:*:*)--->\na (repl:*:*)\n'
},
{
command: 'let x y;',
- expected: 'Thrown:\n' +
- 'let x y;\n ^\n\nSyntaxError: Unexpected identifier\n'
+ expected: 'let x y;\n ^\n\n' +
+ 'Uncaught SyntaxError: Unexpected identifier\n'
},
{
command: 'throw new Error(\'Whoops!\')',
- expected: 'Thrown:\nError: Whoops!\n'
+ expected: 'Uncaught Error: Whoops!\n'
},
{
command: 'foo = bar;',
- expected: 'Thrown:\nReferenceError: bar is not defined\n'
+ expected: 'Uncaught ReferenceError: bar is not defined\n'
},
// test anonymous IIFE
{
command: '(function() { throw new Error(\'Whoops!\'); })()',
- expected: 'Thrown:\nError: Whoops!--->\nrepl:*:*\n'
+ expected: 'Uncaught Error: Whoops!--->\nrepl:*:*\n'
}
];