From 4e6b9b0992784784fe3f8a348814409a1667e3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herbert=20Voj=C4=8D=C3=ADk?= Date: Thu, 16 Sep 2010 14:30:08 +0200 Subject: [PATCH] No need to do if (internalModuleCache...), it's in requireNative. --- src/node.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/node.js b/src/node.js index 255bb9d266..4b463e023b 100644 --- a/src/node.js +++ b/src/node.js @@ -455,13 +455,8 @@ var module = (function () { debug("loadModule REQUEST " + (request) + " parent: " + parent.id); // native modules always take precedence. - var cachedNative = internalModuleCache[id]; - if (cachedNative) { - return callback ? callback(null, cachedNative.exports) : cachedNative.exports; - } - if (nativeSource[id]) { - debug('load native module ' + id); + //debug('load native module ' + id); var nativeMod = requireNative(id); return callback ? callback(null, nativeMod) : nativeMod; }