Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid redeclaring variable

Capitalize the constructor to avoid redeclaration.
Fixes strict mode error.
  • Loading branch information...
commit 93d4259cf041928cba0e3cf32a7007ee0d3df92a 1 parent e11b6b8
@nlogax nlogax authored TooTallNate committed
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/cluster.js
View
8 lib/cluster.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.