Skip to content

Commit 2494d8a

Browse files
fhinkelMylesBorins
authored andcommitted
test: update V8 flag in test
--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]>
1 parent 9ac22cd commit 2494d8a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/parallel/test-preload.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,9 @@ childProcess.exec(nodeBinary + ' ' +
139139

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

0 commit comments

Comments
 (0)