From 3ea19b6096e5a9b8eb9a8034983d07974aae0ff4 Mon Sep 17 00:00:00 2001 From: Rick Pelletier Date: Fri, 19 Oct 2012 16:17:25 -0400 Subject: [PATCH] Updated to use prototype instead of pointless var (thanks michaelficarra) --- tools/node.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/node.js b/tools/node.js index 5e50f655..cb91af7f 100644 --- a/tools/node.js +++ b/tools/node.js @@ -1,7 +1,6 @@ var fs = require("fs"); // discard annoying NodeJS warning ("path.existsSync is now called `fs.existsSync`.") -var original_stderr_write = process.stderr.write; process.stderr.write = function() { return true; }; var vm = require("vm"); @@ -16,7 +15,7 @@ var UglifyJS = vm.createContext({ }); // return stderr to normal -process.stderr.write = original_stderr_write; +process.stderr.write = process.stderr.constructor.prototype.write; function load_global(file) { file = path.resolve(path.dirname(module.filename), file);