Skip to content

Commit c01a9cc

Browse files
targosofrobots
authored andcommitted
test: update error message for JSON.parse
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>
1 parent 5dc5364 commit c01a9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function error_test() {
156156
expect: /^SyntaxError: Unexpected number/ },
157157
// should throw
158158
{ client: client_unix, send: 'JSON.parse(\'{\');',
159-
expect: /^SyntaxError: Unexpected end of input/ },
159+
expect: /^SyntaxError: Unexpected end of JSON input/ },
160160
// invalid RegExps are a special case of syntax error,
161161
// should throw
162162
{ client: client_unix, send: '/(/;',

0 commit comments

Comments
 (0)