From a0c464638c3b04e22b38358b0526308b8dcd1c63 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 5 Oct 2009 20:29:59 +0200 Subject: [PATCH] Remove old references to node.loadingModules --- src/node.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/node.js b/src/node.js index 57a40c269a8..7de9a910fb3 100644 --- a/src/node.js +++ b/src/node.js @@ -252,8 +252,6 @@ node.Module.prototype.loadScript = function (loadPromise) { // remove shebang content = content.replace(/^\#\!.*/, ''); - node.loadingModules = []; - function requireAsync (url) { return self.newChild(url, {}); } @@ -266,9 +264,7 @@ node.Module.prototype.loadScript = function (loadPromise) { var wrapper = "function (__filename, exports, require) { " + content + "\n};"; var compiled_wrapper = node.compile(wrapper, self.filename); - node.loadingModules.unshift(self); compiled_wrapper.apply(self.target, [self.filename, self.target, require]); - node.loadingModules.shift(); self.waitChildrenLoad(function () { self.loaded = true;