From 46d61eeec65df4a9c94721de1ff52a3d12b8240a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 16 Oct 2025 21:31:57 -0400 Subject: [PATCH] make private --- .../svelte/src/internal/client/dom/blocks/boundary.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/svelte/src/internal/client/dom/blocks/boundary.js b/packages/svelte/src/internal/client/dom/blocks/boundary.js index 039eded21b..4945cc16d0 100644 --- a/packages/svelte/src/internal/client/dom/blocks/boundary.js +++ b/packages/svelte/src/internal/client/dom/blocks/boundary.js @@ -87,7 +87,7 @@ export class Boundary { /** @type {DocumentFragment | null} */ #offscreen_fragment = null; - local_pending_count = 0; + #local_pending_count = 0; #pending_count = 0; #is_creating_fallback = false; @@ -103,12 +103,12 @@ export class Boundary { #effect_pending_update = () => { if (this.#effect_pending) { - internal_set(this.#effect_pending, this.local_pending_count); + internal_set(this.#effect_pending, this.#local_pending_count); } }; #effect_pending_subscriber = createSubscriber(() => { - this.#effect_pending = source(this.local_pending_count); + this.#effect_pending = source(this.#local_pending_count); if (DEV) { tag(this.#effect_pending, '$effect.pending()'); @@ -297,7 +297,7 @@ export class Boundary { update_pending_count(d) { this.#update_pending_count(d); - this.local_pending_count += d; + this.#local_pending_count += d; effect_pending_updates.add(this.#effect_pending_update); } @@ -356,7 +356,7 @@ export class Boundary { // If the failure happened while flushing effects, current_batch can be null Batch.ensure(); - this.local_pending_count = 0; + this.#local_pending_count = 0; if (this.#failed_effect !== null) { pause_effect(this.#failed_effect, () => {