From 40ec84d0fe18e17de69d827b01ec2ebc027e1390 Mon Sep 17 00:00:00 2001 From: Matt Loring Date: Fri, 4 Sep 2015 12:01:07 -0700 Subject: [PATCH] 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 --- tools/v8-prof/polyfill.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/v8-prof/polyfill.js b/tools/v8-prof/polyfill.js index 0d78391b836d67..24661c70023e16 100644 --- a/tools/v8-prof/polyfill.js +++ b/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');