Skip to content

Commit 93c3d30

Browse files
committed
Fix misleading JSDoc on __setSingletons
1 parent e6d7c3f commit 93c3d30

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

runtime-singletons.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ let current: RuntimeSingletons = {
6565

6666
// ── Public API ────────────────────────────────────────────────────────
6767

68-
/** Atomically replace all singletons. Test‑only — use __ naming convention. */
68+
/** Atomically replace all singletons.
69+
* Called by spawn/renderer.ts at module evaluation time (production) and by
70+
* tests via createTestHarness(). The __ prefix signals that callers should
71+
* understand the lifecycle implications — see spawn/renderer.ts for the
72+
* production registration pattern. */
6973
export function __setSingletons(
7074
s: RuntimeSingletons,
7175
options?: { forceWriteLock?: boolean },

0 commit comments

Comments
 (0)