Skip to content

Commit

Permalink
Remove narwhal package hint
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Sep 5, 2010
1 parent 7fea3c2 commit d141f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nodules.js
Expand Up @@ -263,7 +263,7 @@ function makeRequire(currentId){
} }
} }
try{ try{
return moduleExports[id] || defaultRequire(id, "narwhal"); // for narwhal, only look for narwhal system modules, this will be ignored by node return moduleExports[id] || defaultRequire(id);
}catch(e){ }catch(e){
if(e.message.substring(0, 19) == "Can not find module"){ if(e.message.substring(0, 19) == "Can not find module"){
throw new Error("Can not find module " + uri); throw new Error("Can not find module " + uri);
Expand Down Expand Up @@ -348,7 +348,7 @@ function makeRequire(currentId){
} }
try{ try{
//check to see if it is a system module //check to see if it is a system module
moduleExports[id] || defaultRequire(id, "narwhal"); moduleExports[id] || defaultRequire(id);
}catch(e){ }catch(e){
factories[uri] = function(){ factories[uri] = function(){
throw new Error(error.message + " failed to load " + uri); throw new Error(error.message + " failed to load " + uri);
Expand Down

0 comments on commit d141f4b

Please sign in to comment.