Skip to content

Commit

Permalink
tools: add missing tick processor polyfill
Browse files Browse the repository at this point in the history
The polyfill is only needed if incorrect command line arguments
are passed to the script so it was missed in initial testing.

PR-URL: #2694
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
Matt Loring authored and bnoordhuis committed Sep 14, 2015
1 parent fed0b28 commit 40ec84d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/v8-prof/polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 40ec84d

Please sign in to comment.