Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed devDependenecies spelling and changed process.ARGV to process.argv #2

Merged
merged 2 commits into from

2 participants

Ryan Olds Tomaz Muraus
Ryan Olds

No description provided.

Tomaz Muraus Kami merged commit b37ae52 into from
Tomaz Muraus
Owner

Thanks.

Ryan Olds

No problem. Some of the tests are using require.paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
4 lib/tcpworkerserver.js
View
@@ -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);
2  lib/worker.js
View
@@ -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);
}
2  lib/worker_pool.js
View
@@ -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);
2  package.json
View
@@ -20,7 +20,7 @@
"scripts": {
"test": "make test-all"
},
- "devEependencies": {
+ "devDependencies": {
"expresso": ">= 0.3.18"
},
"engines": {
2  test/fixtures/tcp-worker.js
View
@@ -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);
Something went wrong with that request. Please try again.