summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-mode.js
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2016-01-22 09:24:50 +0100
committerAli Sheikh <ofrobots@lemonhope.roam.corp.google.com>2016-03-03 20:35:20 -0800
commit9968941797a130f68097a253d555b93fa6c6c4a4 (patch)
tree7bea30a463bbcf6b7107e5664fdbc0a49eb25b8d /test/parallel/test-repl-mode.js
parent079973b96a782715b180c382f1ac60b8a65d7dd5 (diff)
downloadandroid-node-v8-9968941797a130f68097a253d555b93fa6c6c4a4.tar.gz
android-node-v8-9968941797a130f68097a253d555b93fa6c6c4a4.tar.bz2
android-node-v8-9968941797a130f68097a253d555b93fa6c6c4a4.zip
test: fix tests after V8 upgrade
- An error message changed for undefined references - `let` is now allowed in sloppy mode - ES2015 proxies are shipped and the `Proxy` global is now a function PR-URL: https://github.com/nodejs/node/pull/4722 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'test/parallel/test-repl-mode.js')
-rw-r--r--test/parallel/test-repl-mode.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-repl-mode.js b/test/parallel/test-repl-mode.js
index ba7d983bad..08b296c2c3 100644
--- a/test/parallel/test-repl-mode.js
+++ b/test/parallel/test-repl-mode.js
@@ -28,8 +28,7 @@ function testSloppyMode() {
cli.input.emit('data', `
let y = 3
`.trim() + '\n');
- assert.ok(/SyntaxError: Block-scoped/.test(
- cli.output.accumulator.join('')));
+ assert.equal(cli.output.accumulator.join(''), 'undefined\n> ');
}
function testStrictMode() {