diff options
author | Jann Horn <jannhorn@googlemail.com> | 2011-08-16 20:12:54 +0300 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-08-29 18:20:58 +0200 |
commit | 1a0edbca863f0071c5dc89504e10f99df28f8cd7 (patch) | |
tree | 7781677183f8a798e559ef22b41f65abafc59dde /src | |
parent | b5643cb2a62a5bfddb5be29e74fdf4c0206e1234 (diff) | |
download | node-new-1a0edbca863f0071c5dc89504e10f99df28f8cd7.tar.gz |
module: remove 'is URL?' check in module loader, dead code
Diffstat (limited to 'src')
-rw-r--r-- | src/node.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/node.js b/src/node.js index aa0592e576..bebacb3f40 100644 --- a/src/node.js +++ b/src/node.js @@ -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 |