Assign to property of global, instead of implicit global variable

Fixes crash in strict mode.
This commit is contained in:
Jonas Westerlund 2012-07-04 23:19:09 +02:00 committed by Nathan Rajlich
parent c7bc4cacde
commit a9b0bcfafe

View File

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