From 1a0edbca863f0071c5dc89504e10f99df28f8cd7 Mon Sep 17 00:00:00 2001 From: Jann Horn Date: Tue, 16 Aug 2011 20:12:54 +0300 Subject: [PATCH] module: remove 'is URL?' check in module loader, dead code --- src/node.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/node.js b/src/node.js index aa0592e5766..bebacb3f402 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