pull/18169/head
Simon Holthausen 2 weeks ago
parent 720e23cffe
commit 1dfe5b345d

@ -213,6 +213,7 @@ export async function* for_await_track_reactivity_loss(iterable) {
throw new TypeError('value is not async iterable');
}
// eslint-disable-next-line no-useless-assignment
let invoke_return = true;
try {
@ -241,6 +242,7 @@ export async function* for_await_track_reactivity_loss(iterable) {
} finally {
// If the iterator had an abrupt completion (break) and `return` is defined on the iterator, call it and return the value
if (invoke_return && iterator.return !== undefined) {
// eslint-disable-next-line no-unsafe-finally
return /** @type {TReturn} */ ((await track_reactivity_loss(iterator.return()))());
}
}

Loading…
Cancel
Save