wrong promise added to settled_promises due to reassignment

object-blockers
David Roizenman 2 weeks ago
parent c6a845374b
commit e69bf8dbce
No known key found for this signature in database
GPG Key ID: CD7B405D13E241B6

@ -275,14 +275,16 @@ export function run(thunks) {
})
.catch(handle_error);
promise.finally(() => {
settled_promises.add(promise);
const p = promise;
p.finally(() => {
settled_promises.add(p);
unset_context();
current_batch?.deactivate();
});
promises.push(promise);
promises.push(p);
}
promise

Loading…
Cancel
Save