mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
No need to do if (internalModuleCache...), it's in requireNative.
This commit is contained in:
1 parent
a3333e7393
commit
1375b8ed39
1 file changed
+1
-6
+1
-6
@@ -460,13 +460,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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user