From 535313bf264a15acc417613a7342bb89389aaa49 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Sun, 20 May 2012 12:26:27 -0500 Subject: [PATCH] Undefine console in node.js env --- lib/execjs/support/node_runner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/execjs/support/node_runner.js b/lib/execjs/support/node_runner.js index f4d3b77..86b91d1 100644 --- a/lib/execjs/support/node_runner.js +++ b/lib/execjs/support/node_runner.js @@ -1,4 +1,4 @@ -(function(program, execJS) { execJS(program) })(function(module, exports, require) { #{source} +(function(program, execJS) { execJS(program) })(function(module, exports, require, console) { #{source} }, function(program) { var output, print = function(string) { process.stdout.write('' + string);