From a9b0bcfafe33c3871bf3c3b18c538025eff526d7 Mon Sep 17 00:00:00 2001 From: Jonas Westerlund Date: Wed, 4 Jul 2012 23:19:09 +0200 Subject: [PATCH] Assign to property of global, instead of implicit global variable Fixes crash in strict mode. --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index e3e1f7d3c8..eb31b4b332 100644 --- a/src/node.js +++ b/src/node.js @@ -25,7 +25,7 @@ // bootstrapping the node.js core. Special caution is given to the performance // of the startup process, so many dependencies are invoked lazily. (function(process) { - global = this; + this.global = this; function startup() { var EventEmitter = NativeModule.require('events').EventEmitter;