Browse Source

Assign to property of global, instead of implicit global variable

Fixes crash in strict mode.
v0.8.7-release
Jonas Westerlund 13 years ago
committed by Nathan Rajlich
parent
commit
a9b0bcfafe
  1. 2
      src/node.js

2
src/node.js

@ -25,7 +25,7 @@
// bootstrapping the node.js core. Special caution is given to the performance // bootstrapping the node.js core. Special caution is given to the performance
// of the startup process, so many dependencies are invoked lazily. // of the startup process, so many dependencies are invoked lazily.
(function(process) { (function(process) {
global = this; this.global = this;
function startup() { function startup() {
var EventEmitter = NativeModule.require('events').EventEmitter; var EventEmitter = NativeModule.require('events').EventEmitter;

Loading…
Cancel
Save