summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl.js
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2016-03-07 23:09:31 +0100
committerAli Ijaz Sheikh <ofrobots@google.com>2016-04-14 10:03:54 -0700
commitb68827b1d1c20d0f3e0592734e845b87967a72bc (patch)
tree128899e497f5c6c800767a63c4ae7fc64c51f37e /test/parallel/test-repl.js
parent52af5c4eebf4de8638aef0338bd826656312a02a (diff)
downloadandroid-node-v8-b68827b1d1c20d0f3e0592734e845b87967a72bc.tar.gz
android-node-v8-b68827b1d1c20d0f3e0592734e845b87967a72bc.tar.bz2
android-node-v8-b68827b1d1c20d0f3e0592734e845b87967a72bc.zip
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>
Diffstat (limited to 'test/parallel/test-repl.js')
-rw-r--r--test/parallel/test-repl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js
index 02ce8169ca..2ec996897a 100644
--- a/test/parallel/test-repl.js
+++ b/test/parallel/test-repl.js
@@ -156,7 +156,7 @@ function error_test() {
expect: /^SyntaxError: Unexpected number/ },
// should throw
{ 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,
// should throw
{ client: client_unix, send: '/(/;',