fix(javascript): preserve local reference store ownership

This commit is contained in:
morluto committed 2026-10-24 08:22:13 +08:00
1 parent 59553c76be
commit 07005b8fe6
5 files changed
+29 -2

No files matched your search

@@ -171,6 +171,8 @@ export interface JavaScriptSemanticAnalysisState {
readonly ambientBindingWrites: Map<string, t.Node[]>;
/** Source-local writes, tagged by global, import.meta or CJS module identity. */
readonly ambientWrites: SemanticPropertyPathCoverage;
/** Store targets whose ownership is unknown or ambient, as classified by ambient indexing. */
readonly escapingReferenceStores: WeakSet<t.MemberExpression>;
/** Ambient object identities passed to calls whose effects are not evaluated. */
readonly ambientEscapes: SemanticPropertyPathCoverage;
/** Capture sites keep later opaque effects from changing earlier copies. */