Browse Source

Fix ARGV[0] weirdness

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
dbb1a267d7
  1. 2
      src/node.js

2
src/node.js

@ -929,7 +929,7 @@ process.exit = function (code) {
var cwd = process.cwd(); var cwd = process.cwd();
// Make process.ARGV[0] and process.ARGV[1] into full paths. // Make process.ARGV[0] and process.ARGV[1] into full paths.
if (process.ARGV[0].charAt(0) != "/") { if (process.ARGV[0].indexOf('/') > 0) {
process.ARGV[0] = path.join(cwd, process.ARGV[0]); process.ARGV[0] = path.join(cwd, process.ARGV[0]);
} }

Loading…
Cancel
Save