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 <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
fhinkel authored and jasnell committed Mar 8, 2017
1 parent 3a6fd1d commit 52d09f2
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 52d09f2

Please sign in to comment.