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 <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex authored and evanlucas committed May 3, 2017
1 parent 84484b7 commit 933b6b5
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 933b6b5

Please sign in to comment.