module: remove 'is URL?' check in module loader, dead code

This commit is contained in:
Jann Horn 2011-08-16 20:12:54 +03:00 committed by Ben Noordhuis
parent b5643cb2a6
commit 1a0edbca86

View File

@ -92,10 +92,8 @@
} else if (process.argv[1]) { } else if (process.argv[1]) {
// make process.argv[1] into a full path // make process.argv[1] into a full path
if (!(/^http:\/\//).exec(process.argv[1])) {
var path = NativeModule.require('path'); var path = NativeModule.require('path');
process.argv[1] = path.resolve(process.argv[1]); process.argv[1] = path.resolve(process.argv[1]);
}
var Module = NativeModule.require('module'); var Module = NativeModule.require('module');
// REMOVEME: nextTick should not be necessary. This hack to get // REMOVEME: nextTick should not be necessary. This hack to get