summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJann Horn <jannhorn@googlemail.com>2011-08-16 20:12:54 +0300
committerBen Noordhuis <info@bnoordhuis.nl>2011-08-29 18:20:58 +0200
commit1a0edbca863f0071c5dc89504e10f99df28f8cd7 (patch)
tree7781677183f8a798e559ef22b41f65abafc59dde /src
parentb5643cb2a62a5bfddb5be29e74fdf4c0206e1234 (diff)
downloadnodejs-1a0edbca863f0071c5dc89504e10f99df28f8cd7.tar.gz
nodejs-1a0edbca863f0071c5dc89504e10f99df28f8cd7.tar.bz2
nodejs-1a0edbca863f0071c5dc89504e10f99df28f8cd7.zip
module: remove 'is URL?' check in module loader, dead code
Diffstat (limited to 'src')
-rw-r--r--src/node.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/node.js b/src/node.js
index aa0592e57..bebacb3f4 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