fix(javascript): observe shared array iterator prototype effects (#12493)

* fix(javascript): observe shared array iterator prototype effects

* fix(javascript): follow iterator escapes and projected receivers

* fix(javascript): retain packed prototype reads and receiver captures

* fix(javascript): treat proven prototype inspections as read-only

* fix(javascript): retain ordinary array destructuring read dependencies (#12505)
This commit is contained in:
morluto authored and GitHub committed 2026-11-19 20:12:54 +00:00
1 parent 6cbd9cf994
commit 50913e3ba0
10 files changed
+927 -168

No files matched your search

@@ -2077,7 +2077,11 @@ export function* collectSemanticMemberMutationsSteps(
const slot = semanticSelectedReferenceSlot(reference, state);
// Custom iteration can yield the iterable itself as well as any child.
// Treat its root as escaped, including writes through yielded references.
const knownArray = semanticKnownArrayIteration(slot?.value, state);
const knownArray = semanticKnownArrayIteration(
slot?.value,
state,
reference.node,
);
if (knownArray && reference.iterationOnly) continue;
markValue(
reference.node,