Skip to content

Commit 1375b8e

Browse files
Herbert Vojčíkry
authored andcommitted
No need to do if (internalModuleCache...), it's in requireNative.
1 parent a3333e7 commit 1375b8e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/node.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,8 @@ var module = (function () {
460460
debug("loadModule REQUEST " + (request) + " parent: " + parent.id);
461461

462462
// native modules always take precedence.
463-
var cachedNative = internalModuleCache[id];
464-
if (cachedNative) {
465-
return callback ? callback(null, cachedNative.exports) : cachedNative.exports;
466-
}
467-
468463
if (nativeSource[id]) {
469-
debug('load native module ' + id);
464+
//debug('load native module ' + id);
470465
var nativeMod = requireNative(id);
471466
return callback ? callback(null, nativeMod) : nativeMod;
472467
}

0 commit comments

Comments
 (0)