0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

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>
This commit is contained in:
Matt Loring 2015-09-04 12:01:07 -07:00 committed by Ben Noordhuis
parent fed0b28754
commit 40ec84d0fe

View File

@ -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');