Remove old references to node.loadingModules

pull/5370/head
Ryan Dahl 2009-10-05 20:29:59 +02:00
parent 3e9dd0e2e3
commit a0c464638c
1 changed files with 0 additions and 4 deletions

View File

@ -252,8 +252,6 @@ node.Module.prototype.loadScript = function (loadPromise) {
// remove shebang // remove shebang
content = content.replace(/^\#\!.*/, ''); content = content.replace(/^\#\!.*/, '');
node.loadingModules = [];
function requireAsync (url) { function requireAsync (url) {
return self.newChild(url, {}); return self.newChild(url, {});
} }
@ -266,9 +264,7 @@ node.Module.prototype.loadScript = function (loadPromise) {
var wrapper = "function (__filename, exports, require) { " + content + "\n};"; var wrapper = "function (__filename, exports, require) { " + content + "\n};";
var compiled_wrapper = node.compile(wrapper, self.filename); var compiled_wrapper = node.compile(wrapper, self.filename);
node.loadingModules.unshift(self);
compiled_wrapper.apply(self.target, [self.filename, self.target, require]); compiled_wrapper.apply(self.target, [self.filename, self.target, require]);
node.loadingModules.shift();
self.waitChildrenLoad(function () { self.waitChildrenLoad(function () {
self.loaded = true; self.loaded = true;