Avoid redeclaring variable

Capitalize the constructor to avoid redeclaration.
Fixes strict mode error.
This commit is contained in:
Jonas Westerlund 2012-07-04 22:57:48 +02:00 committed by Nathan Rajlich
parent e11b6b8f75
commit 93d4259cf0

View File

@ -41,11 +41,13 @@ if (process.env.NODE_DEBUG && /cluster/.test(process.env.NODE_DEBUG)) {
}
// cluster object:
function cluster() {
function Cluster() {
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:
var masterStarted = false;