fix(javascript): preserve uncertainty after nullish patterns

This commit is contained in:
hhang authored and Ysopwnable committed 2026-11-22 13:38:40 +08:00
1 parent 6b7b09f008
commit 8ae636b6ab
8 files changed
+182 -26

No files matched your search

@@ -244,6 +244,8 @@ remain opt-in through `include_ambiguous_dynamic_edges`.
Destructuring retains dependencies from the source slots proved at the time
of the read. A later write does not replace an earlier proved dependency.
After a nested pattern is proved to receive a nullish value and throw, later
bindings in that pattern retain candidate paths with no proven initializer.
A numeric key in an object pattern selects a named property directly.
Nested array patterns can preserve dependencies for later bindings when
element selection is known and iterator closing cannot invoke a return hook.