Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
No need to do if (internalModuleCache...), it's in requireNative.
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbert Vojčík authored and ry committed Sep 16, 2010
1 parent d429033 commit 4e6b9b0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/node.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4e6b9b0

Please sign in to comment.