mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 22:45:47 +00:00
fix(javascript): retain proven property presence at reads (#12477)
* fix(javascript): retain proven property presence at reads The read-time IR and projection boundary builds on the destructuring work in #7716. This change adds an indexed own-slot proof and uses it for ordinary member reads as well. Co-authored-by: SII-YDD <38822679+SII-YDD@users.noreply.github.com> * fix(javascript): retain destructuring proof in read order --------- Co-authored-by: SII-YDD <38822679+SII-YDD@users.noreply.github.com>
This commit is contained in:
1 parent
833916bb4a
commit
1dc22f18cd
8 files changed
+322
-42
No files matched your search
@@ -558,7 +558,9 @@ const computeDirectInitializerPosition = (
|
||||
if (
|
||||
t.isAssignmentExpression(parent) &&
|
||||
parent.right === node &&
|
||||
t.isIdentifier(parent.left)
|
||||
(t.isIdentifier(parent.left) ||
|
||||
(parent.operator === "=" &&
|
||||
(t.isObjectPattern(parent.left) || t.isArrayPattern(parent.left))))
|
||||
) {
|
||||
return directMutationPosition(parent, parents);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user