Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed process.ARGV to process.argv

  • Loading branch information...
commit 09264e91b71f432096a26ff9f4ff09071d9b41b0 1 parent e81c0a6
@ryanrolds ryanrolds authored
View
4 lib/tcpworkerserver.js
@@ -1,8 +1,8 @@
var util = require('util');
-var port = parseInt(process.ARGV[2], 10);
-var filename = process.ARGV[3];
+var port = parseInt(process.argv[2], 10);
+var filename = process.argv[3];
var worker = require("./tcpworker").startWorker(port);
View
2  lib/worker.js
@@ -285,5 +285,5 @@ exports._WorkerNode = WorkerNode;
if (module.parent && module.parent.filename.indexOf('worker_pool') === -1) {
// This is only exported if this module is not included from the worker pool
// module and if it is run by a child.
- exports.worker = common.get_worker(process.ARGV.slice(), WorkerNode);
+ exports.worker = common.get_worker(process.argv.slice(), WorkerNode);
}
View
2  lib/worker_pool.js
@@ -537,4 +537,4 @@ WorkerPoolChild.prototype.terminate = function() {
exports.WorkerPool = WorkerPool;
// This value will only be defined, if this script is run by a worker
-exports.worker = common.get_worker(process.ARGV.slice(), WorkerPoolNode);
+exports.worker = common.get_worker(process.argv.slice(), WorkerPoolNode);
View
2  test/fixtures/tcp-worker.js
@@ -6,7 +6,7 @@ exports.libDir = path.join(exports.testDir, "../../lib");
require.paths.unshift(exports.libDir);
-var port = parseInt(process.ARGV[2]);
+var port = parseInt(process.argv[2]);
var sys = require("sys");
var worker = require("tcpworker").startWorker(port);
Please sign in to comment.
Something went wrong with that request. Please try again.