Skip to content

Commit b68827b

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 <[email protected]> Reviewed-By: indutny - Fedor Indutny <[email protected]>
1 parent 52af5c4 commit b68827b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-repl.js

+1-1
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)