Browse Source

test: remove obsolete harmony flags

v4.0.0-rc
Chris Dickinson 10 years ago
committed by Rod Vagg
parent
commit
21d31c08e7
  1. 4
      test/parallel/test-repl-harmony.js

4
test/parallel/test-repl-harmony.js

@ -3,10 +3,10 @@ var common = require('../common');
var assert = require('assert'); var assert = require('assert');
var spawn = require('child_process').spawn; var spawn = require('child_process').spawn;
var args = ['--harmony', '--harmony_scoping', '--use-strict', '-i']; var args = ['-i'];
var child = spawn(process.execPath, args); 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/; var expectOut = /^> TypeError: Assignment to constant variable.\n/;
child.stderr.setEncoding('utf8'); child.stderr.setEncoding('utf8');

Loading…
Cancel
Save