Permalink
Browse files

Uhm... yeah, don't expect users to do "node http://host/script.js".

  • Loading branch information...
1 parent 4cf931d commit 5b01c3dbb8ba64d7618e0e21660c38eec63280f6 @thejh committed Aug 16, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/node.js
View
@@ -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

0 comments on commit 5b01c3d

Please sign in to comment.