diff options
author | Jonas Westerlund <jonas.westerlund@me.com> | 2012-07-04 23:19:09 +0200 |
---|---|---|
committer | Nathan Rajlich <nathan@tootallnate.net> | 2012-07-06 19:28:35 -0700 |
commit | a9b0bcfafe33c3871bf3c3b18c538025eff526d7 (patch) | |
tree | 09d021ebd276e5b108b447e670f0c30ea75f0284 /src | |
parent | c7bc4cacde163f916b62f196194ff5c1cabb61a2 (diff) | |
download | node-a9b0bcfafe33c3871bf3c3b18c538025eff526d7.tar.gz |
Assign to property of global, instead of implicit global variable
Fixes crash in strict mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/node.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.js b/src/node.js index e3e1f7d3c..eb31b4b33 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; |