Skip to content

Commit 7feffa8

Browse files
mscdexevanlucas
authored andcommitted
cluster: fix permanent deoptimizations
PR-URL: #12456 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 57208b8 commit 7feffa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/cluster/child.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function shared(message, handle, indexesKey, cb) {
9999
delete handles[key];
100100
delete indexes[indexesKey];
101101
return close.apply(this, arguments);
102-
};
102+
}.bind(handle);
103103
assert(handles[key] === undefined);
104104
handles[key] = handle;
105105
cb(message.errno, handle);
@@ -192,7 +192,7 @@ function _disconnect(masterInitiated) {
192192
}
193193
}
194194

195-
for (const key in handles) {
195+
for (var key in handles) {
196196
const handle = handles[key];
197197
delete handles[key];
198198
waitingCount++;

0 commit comments

Comments
 (0)