Browse Source

Avoid redeclaring variable

Capitalize the constructor to avoid redeclaration.
Fixes strict mode error.
v0.8.7-release
Jonas Westerlund 13 years ago
committed by Nathan Rajlich
parent
commit
93d4259cf0
  1. 8
      lib/cluster.js

8
lib/cluster.js

@ -41,11 +41,13 @@ if (process.env.NODE_DEBUG && /cluster/.test(process.env.NODE_DEBUG)) {
} }
// cluster object: // cluster object:
function cluster() { function Cluster() {
EventEmitter.call(this); EventEmitter.call(this);
} }
util.inherits(cluster, EventEmitter);
var cluster = module.exports = new cluster(); util.inherits(Cluster, EventEmitter);
var cluster = module.exports = new Cluster();
// Used in the master: // Used in the master:
var masterStarted = false; var masterStarted = false;

Loading…
Cancel
Save