merge-batches
Rich Harris 1 day ago
parent fe693befb9
commit cb6e8244ae

@ -349,11 +349,14 @@ export class Batch {
this.#callbacks.clear(); this.#callbacks.clear();
if (batches.size > 1) {
const effects = new Set();
/** /**
* @param {Value} value * @param {Value} value
* @param {Set<Effect>} effects * @param {Set<Effect>} effects
*/ */
function get_async_effects(value, effects) { const get_async_effects = (value, effects) => {
if (value.reactions !== null) { if (value.reactions !== null) {
for (const reaction of value.reactions) { for (const reaction of value.reactions) {
const flags = reaction.f; const flags = reaction.f;
@ -365,10 +368,7 @@ export class Batch {
} }
} }
} }
} };
if (batches.size > 1) {
const effects = new Set();
for (const source of this.current.keys()) { for (const source of this.current.keys()) {
// TODO do we also need block effects? // TODO do we also need block effects?

Loading…
Cancel
Save