Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Assign to property of global, instead of implicit global variable
Browse files Browse the repository at this point in the history
Fixes crash in strict mode.
  • Loading branch information
Jonas Westerlund authored and TooTallNate committed Jul 7, 2012
1 parent c7bc4ca commit a9b0bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.js
Expand Up @@ -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;
Expand Down

0 comments on commit a9b0bcf

Please sign in to comment.