mirror of https://github.com/nodejs/node.git
module: remove 'is URL?' check in module loader, dead code
parent
b5643cb2a6
commit
1a0edbca86
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue