Browse Source

test: update error message for JSON.parse

V8 5.0 introduced a small modification for the unexpected end of input
error.

PR-URL: https://github.com/nodejs/node/pull/5945
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com>
process-exit-stdio-flushing
Michaël Zasso 9 years ago
committed by Ali Ijaz Sheikh
parent
commit
b68827b1d1
  1. 2
      test/parallel/test-repl.js

2
test/parallel/test-repl.js

@ -156,7 +156,7 @@ function error_test() {
expect: /^SyntaxError: Unexpected number/ },
// should throw
{ client: client_unix, send: 'JSON.parse(\'{\');',
expect: /^SyntaxError: Unexpected end of input/ },
expect: /^SyntaxError: Unexpected end of JSON input/ },
// invalid RegExps are a special case of syntax error,
// should throw
{ client: client_unix, send: '/(/;',

Loading…
Cancel
Save