Skip to content

Commit

Permalink
cluster: fix permanent deoptimizations
Browse files Browse the repository at this point in the history
PR-URL: #12456
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
mscdex authored and evanlucas committed May 2, 2017
1 parent 57208b8 commit 7feffa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/cluster/child.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function shared(message, handle, indexesKey, cb) {
delete handles[key];
delete indexes[indexesKey];
return close.apply(this, arguments);
};
}.bind(handle);
assert(handles[key] === undefined);
handles[key] = handle;
cb(message.errno, handle);
Expand Down Expand Up @@ -192,7 +192,7 @@ function _disconnect(masterInitiated) {
}
}

for (const key in handles) {
for (var key in handles) {
const handle = handles[key];
delete handles[key];
waitingCount++;
Expand Down

0 comments on commit 7feffa8

Please sign in to comment.