Skip to content
Browse files

Merge pull request #2 from ryanrolds/master

Fixed devDependenecies spelling and changed process.ARGV to process.argv
  • Loading branch information...
2 parents 8ffd932 + 09264e9 commit b37ae5263ec0f26589b076b5f1a816dd644a976a @Kami committed
Showing with 6 additions and 6 deletions.
  1. +2 −2 lib/tcpworkerserver.js
  2. +1 −1 lib/worker.js
  3. +1 −1 lib/worker_pool.js
  4. +1 −1 package.json
  5. +1 −1 test/fixtures/tcp-worker.js
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 package.json
@@ -20,7 +20,7 @@
"scripts": {
"test": "make test-all"
},
- "devEependencies": {
+ "devDependencies": {
"expresso": ">= 0.3.18"
},
"engines": {
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);

0 comments on commit b37ae52

Please sign in to comment.
Something went wrong with that request. Please try again.