fix(javascript): retain proven browser global receivers

This commit is contained in:
morluto committed 2026-10-24 09:11:30 +08:00
1 parent 673a659074
commit 45d0c3e299
5 files changed
+20 -4

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;
/** Browser receivers proven to be only the ambient global identity. */
readonly retainedGlobalCallReceivers: WeakSet<t.Node>;
/** 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. */