diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/simple/test-repl.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/simple/test-repl.js b/test/simple/test-repl.js index 27c2058b01..2c04e2c1bd 100644 --- a/test/simple/test-repl.js +++ b/test/simple/test-repl.js @@ -134,6 +134,9 @@ function error_test() { expect: /^SyntaxError: Unexpected token i/ }, // end of input to JSON.parse error is special case of syntax error, // should throw + { client: client_unix, send: 'JSON.parse(\'066\');', + expect: /^SyntaxError: Unexpected number/ }, + // should throw { client: client_unix, send: 'JSON.parse(\'{\');', expect: /^SyntaxError: Unexpected end of input/ }, // invalid RegExps are a special case of syntax error, |