summaryrefslogtreecommitdiff
path: root/lib/cluster.js
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2014-11-22 16:59:48 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2014-11-22 17:23:30 +0100
commit21130c7d6fcaee666f33735768c060be2e06614a (patch)
tree0148a92dd9e6fb13ab6fac3311bd96d926f313fc /lib/cluster.js
parent963f5e8a886841d69e79fdc46aaa0010126408e8 (diff)
downloadandroid-node-v8-21130c7d6fcaee666f33735768c060be2e06614a.tar.gz
android-node-v8-21130c7d6fcaee666f33735768c060be2e06614a.tar.bz2
android-node-v8-21130c7d6fcaee666f33735768c060be2e06614a.zip
lib: turn on strict mode
Turn on strict mode for the files in the lib/ directory. It helps catch bugs and can have a positive effect on performance. PR-URL: https://github.com/node-forward/node/pull/64 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'lib/cluster.js')
-rw-r--r--lib/cluster.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cluster.js b/lib/cluster.js
index 6f355d0bc3..62cd69835a 100644
--- a/lib/cluster.js
+++ b/lib/cluster.js
@@ -19,6 +19,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+'use strict';
+
var EventEmitter = require('events').EventEmitter;
var assert = require('assert');
var dgram = require('dgram');
@@ -680,8 +682,6 @@ function sendHelper(proc, message, handle, cb) {
// to the callback but intercepts and redirects ACK messages.
function internal(worker, cb) {
return function(message, handle) {
- 'use strict';
-
if (message.cmd !== 'NODE_CLUSTER') return;
var fn = cb;
if (!util.isUndefined(message.ack)) {