module: remove 'is URL?' check in module loader, dead code
This commit is contained in:
parent
b5643cb2a6
commit
1a0edbca86
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user