Skip to content

Commit

Permalink
test: update V8 flag in test
Browse files Browse the repository at this point in the history
--expose-debug-as is deprecated in V8, switch test-preload.js to a flag
that still exists.

PR-URL: #10917
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
fhinkel authored and MylesBorins committed Mar 9, 2017
1 parent 9ac22cd commit 2494d8a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/parallel/test-preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,9 @@ childProcess.exec(nodeBinary + ' ' +

// https://github.com/nodejs/node/issues/1691
process.chdir(common.fixturesDir);
childProcess.exec(nodeBinary + ' ' +
'--expose_debug_as=v8debug ' +
'--require ' + fixture('cluster-preload.js') + ' ' +
'cluster-preload-test.js',
childProcess.exec(
nodeBinary + ' ' + '--expose_natives_as=v8natives ' + '--require ' +
fixture('cluster-preload.js') + ' ' + 'cluster-preload-test.js',
function(err, stdout, stderr) {
if (err) throw err;
assert.ok(/worker terminated with code 43/.test(stdout));
Expand Down

0 comments on commit 2494d8a

Please sign in to comment.