From 04c916989291ccc28fb2a8230e4013f97cc9799d Mon Sep 17 00:00:00 2001 From: koichik Date: Tue, 5 Jul 2011 04:10:14 +0900 Subject: [PATCH] Fixes #1267. Error message of JSON.parse() was changed. --- test/simple/test-repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simple/test-repl.js b/test/simple/test-repl.js index 3183fa1b63..c862d11764 100644 --- a/test/simple/test-repl.js +++ b/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 },