summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-repl.js')
-rw-r--r--test/parallel/test-repl.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js
index 8cb4b686b8..49e718da0f 100644
--- a/test/parallel/test-repl.js
+++ b/test/parallel/test-repl.js
@@ -132,7 +132,11 @@ const errorTests = [
// Uncaught error throws and prints out
{
send: 'throw new Error(\'test error\');',
- expect: /^Error: test error/
+ expect: 'Error: test error'
+ },
+ {
+ send: "throw { foo: 'bar' };",
+ expect: "Thrown: { foo: 'bar' }"
},
// Common syntax error is treated as multiline command
{
@@ -526,7 +530,7 @@ const errorTests = [
{
send: 'require("internal/repl")',
expect: [
- /^Error: Cannot find module 'internal\/repl'/,
+ /^{ Error: Cannot find module 'internal\/repl'/,
/^ at .*/,
/^ at .*/,
/^ at .*/,