Skip to content

Commit

Permalink
test: update error message for JSON.parse
Browse files Browse the repository at this point in the history
V8 5.0 introduced a small modification for the unexpected end of input
error.

PR-URL: #5945
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com>
  • Loading branch information
targos authored and ofrobots committed Apr 14, 2016
1 parent 52af5c4 commit b68827b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '/(/;',
Expand Down

0 comments on commit b68827b

Please sign in to comment.