diff --git a/test/parallel/test-repl-harmony.js b/test/parallel/test-repl-harmony.js index 446aebe2d51c99..6bc5cb57aa1187 100644 --- a/test/parallel/test-repl-harmony.js +++ b/test/parallel/test-repl-harmony.js @@ -3,10 +3,10 @@ var common = require('../common'); var assert = require('assert'); var spawn = require('child_process').spawn; -var args = ['--harmony', '--harmony_scoping', '--use-strict', '-i']; +var args = ['-i']; var child = spawn(process.execPath, args); -var input = '(function(){const y=1;y=2})()\n'; +var input = '(function(){"use strict"; const y=1;y=2})()\n'; var expectOut = /^> TypeError: Assignment to constant variable.\n/; child.stderr.setEncoding('utf8');