mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
benchmark: add --expose_internals switch
Adds --expose_internals switch to benchmark runner. This makes misc/freelist.js benchmark run properly Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Andreas Madsen <amwebdk@gmail.com> PR-URL: https://github.com/nodejs/node/pull/8547
This commit is contained in:
parent
ce7d3077dc
commit
99a2dd03cd
2 changed files with 6 additions and 2 deletions
|
@ -137,7 +137,8 @@ Benchmark.prototype._run = function() {
|
|||
}
|
||||
|
||||
const child = child_process.fork(require.main.filename, childArgs, {
|
||||
env: childEnv
|
||||
env: childEnv,
|
||||
execArgv: ['--expose_internals'].concat(process.execArgv)
|
||||
});
|
||||
child.on('message', sendResult);
|
||||
child.on('close', function(code) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue