From b68827b1d1c20d0f3e0592734e845b87967a72bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 7 Mar 2016 23:09:31 +0100 Subject: [PATCH] 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 Reviewed-By: indutny - Fedor Indutny --- test/parallel/test-repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index 02ce8169caf3fe..2ec996897a1cae 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: '/(/;',