Browse Source

Fix reference to root global context

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
9472812569
  1. 2
      lib/module.js

2
lib/module.js

@ -400,7 +400,7 @@ Module.prototype._compile = function (content, filename) {
sandbox.__filename = filename;
sandbox.__dirname = dirname;
sandbox.module = self;
sandbox.root = sandbox;
sandbox.root = global;
Script.runInNewContext(content, sandbox, filename);

Loading…
Cancel
Save