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:
Bartosz Sosnowski 2016-09-16 12:31:22 +02:00
parent ce7d3077dc
commit 99a2dd03cd
2 changed files with 6 additions and 2 deletions

View file

@ -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) {