Browse Source

Fixes #1267.

Error message of JSON.parse() was changed.
v0.7.4-release
koichik 14 years ago
committed by Ryan Dahl
parent
commit
8faf941109
  1. 2
      test/simple/test-repl.js

2
test/simple/test-repl.js

@ -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 },

Loading…
Cancel
Save