projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3e5da0
)
Fixes #1267.
author
koichik
<koichik@improvement.jp>
Mon, 4 Jul 2011 19:10:14 +0000
(
04:10
+0900)
committer
koichik
<koichik@improvement.jp>
Mon, 4 Jul 2011 19:15:51 +0000
(
04:15
+0900)
Error message of JSON.parse() was changed.
test/simple/test-repl.js
patch
|
blob
|
history
diff --git
a/test/simple/test-repl.js
b/test/simple/test-repl.js
index
3183fa1
..
c862d11
100644
(file)
--- 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 },