Error message of JSON.parse() was changed.
This commit is contained in:
koichik 2011-07-05 04:10:14 +09:00
parent a3e5da07b4
commit 04c9169892

View File

@ -118,7 +118,7 @@ function error_test() {
// invalid input to JSON.parse error is special case of syntax error,
// should throw
{ client: client_unix, send: 'JSON.parse(\'{invalid: \\\'json\\\'}\');',
expect: /^SyntaxError: Unexpected token ILLEGAL/ },
expect: /^SyntaxError: Unexpected token i/ },
// Named functions can be used:
{ client: client_unix, send: 'function blah() { return 1; }',
expect: prompt_unix },