diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2016-03-04 14:15:42 -0800 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2016-06-29 10:44:25 +0200 |
commit | 9940766f8a09c2eec06f582cbb0b4883f601be89 (patch) | |
tree | e3d83b0883e2aeae1751707c5cdc3522f4332b6a /test/parallel/test-repl.js | |
parent | a33909e1074c91c468ce75df3979c244b1f7cc0f (diff) | |
download | android-node-v8-9940766f8a09c2eec06f582cbb0b4883f601be89.tar.gz android-node-v8-9940766f8a09c2eec06f582cbb0b4883f601be89.tar.bz2 android-node-v8-9940766f8a09c2eec06f582cbb0b4883f601be89.zip |
test: fix tests after V8 upgrade
* Changes to messages.
* V8 enabled proxy support by default. The --harmony_proxies flag is
now gone.
PR-URL: https://github.com/nodejs/node/pull/6482
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/parallel/test-repl.js')
-rw-r--r-- | test/parallel/test-repl.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index 219ebea4c6..f321f43174 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -177,7 +177,7 @@ function error_test() { { client: client_unix, send: '(function() { "use strict"; eval = 17; })()', expect: /^SyntaxError: Unexpected eval or arguments in strict mode/ }, { client: client_unix, send: '(function() { "use strict"; if (true) function f() { } })()', - expect: /^SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function/ }, + expect: /^SyntaxError: In strict mode code, functions can only be declared at top level or inside a block./ }, // Named functions can be used: { client: client_unix, send: 'function blah() { return 1; }', expect: prompt_unix }, @@ -228,7 +228,7 @@ function error_test() { expect: 'Invalid REPL keyword\n' + prompt_unix }, // fail when we are not inside a String and a line continuation is used { client: client_unix, send: '[] \\', - expect: /^SyntaxError: Unexpected token ILLEGAL/ }, + expect: /^SyntaxError: Invalid or unexpected token/ }, // do not fail when a String is created with line continuation { client: client_unix, send: '\'the\\\nfourth\\\neye\'', expect: prompt_multiline + prompt_multiline + @@ -327,7 +327,7 @@ function error_test() { // Illegal token is not recoverable outside string literal, RegExp literal, // or block comment. https://github.com/nodejs/node/issues/3611 { client: client_unix, send: 'a = 3.5e', - expect: /^SyntaxError: Unexpected token ILLEGAL/ }, + expect: /^SyntaxError: Invalid or unexpected token/ }, ]); } |