Assign to property of global, instead of implicit global variable
Fixes crash in strict mode.
This commit is contained in:
parent
c7bc4cacde
commit
a9b0bcfafe
@ -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…
x
Reference in New Issue
Block a user