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>
This commit is contained in:
parent
52af5c4eeb
commit
b68827b1d1
@ -156,7 +156,7 @@ function error_test() {
|
|||||||
expect: /^SyntaxError: Unexpected number/ },
|
expect: /^SyntaxError: Unexpected number/ },
|
||||||
// should throw
|
// should throw
|
||||||
{ client: client_unix, send: 'JSON.parse(\'{\');',
|
{ 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,
|
// invalid RegExps are a special case of syntax error,
|
||||||
// should throw
|
// should throw
|
||||||
{ client: client_unix, send: '/(/;',
|
{ client: client_unix, send: '/(/;',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user