Browse Source

tools: add missing tick processor polyfill

The polyfill is only needed if incorrect command line arguments
are passed to the script so it was missed in initial testing.

PR-URL: https://github.com/nodejs/node/pull/2694
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
v4.x
Matt Loring 9 years ago
committed by Jeremiah Senkpiel
parent
commit
ff6d30d784
  1. 1
      tools/v8-prof/polyfill.js

1
tools/v8-prof/polyfill.js

@ -47,6 +47,7 @@ function read(fileName) {
return fs.readFileSync(fileName, 'utf8');
}
arguments = process.argv.slice(2);
var quit = process.exit;
// Polyfill "readline()".
var fd = fs.openSync(arguments[arguments.length - 1], 'r');

Loading…
Cancel
Save