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

Commit

Permalink
module: remove 'is URL?' check in module loader, dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
thejh authored and bnoordhuis committed Aug 29, 2011
1 parent b5643cb commit 1a0edbc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/node.js
Expand Up @@ -92,10 +92,8 @@

} else if (process.argv[1]) {
// make process.argv[1] into a full path
if (!(/^http:\/\//).exec(process.argv[1])) {
var path = NativeModule.require('path');
process.argv[1] = path.resolve(process.argv[1]);
}
var path = NativeModule.require('path');
process.argv[1] = path.resolve(process.argv[1]);

var Module = NativeModule.require('module');
// REMOVEME: nextTick should not be necessary. This hack to get
Expand Down

0 comments on commit 1a0edbc

Please sign in to comment.