diff options
Diffstat (limited to 'test/parallel/test-repl-underscore.js')
-rw-r--r-- | test/parallel/test-repl-underscore.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/parallel/test-repl-underscore.js b/test/parallel/test-repl-underscore.js index 2e0865f5a7..c05c387471 100644 --- a/test/parallel/test-repl-underscore.js +++ b/test/parallel/test-repl-underscore.js @@ -173,13 +173,11 @@ function testError() { 'undefined', // The error, both from the original throw and the `_error` echo. - 'Thrown:', - 'Error: foo', + 'Uncaught Error: foo', '[Error: foo]', // The sync error, with individual property echoes - 'Thrown:', - /^Error: ENOENT: no such file or directory, scandir '.*nonexistent\?'/, + /^Uncaught Error: ENOENT: no such file or directory, scandir '.*nonexistent\?'/, /Object\.readdirSync/, /^ errno: -(2|4058),$/, " syscall: 'scandir',", @@ -194,8 +192,7 @@ function testError() { 'undefined', // The message from the original throw - 'Thrown:', - 'Error: baz', + 'Uncaught Error: baz', ]; for (const line of lines) { const expected = expectedLines.shift(); @@ -218,8 +215,7 @@ function testError() { "'baz'", 'Expression assignment to _error now disabled.', '0', - 'Thrown:', - 'Error: quux', + 'Uncaught Error: quux', '0' ]); }); |