mirror of
https://github.com/morluto/rea.git
synced 2026-10-27 09:55:46 +00:00
fix(javascript): share iteration and equality invocation facts
This commit is contained in:
1 parent
0729aba6d7
commit
e597e090b0
5 files changed
+37
-10
No files matched your search
@@ -323,11 +323,10 @@ const accessorEffectOperands = (
|
||||
});
|
||||
if (
|
||||
t.isVariableDeclarator(node) &&
|
||||
node.init != null &&
|
||||
t.isVariableDeclaration(parent) &&
|
||||
(parent.kind === "using" || parent.kind === "await using")
|
||||
)
|
||||
operands.push({ kind: "escape", node: node.init });
|
||||
operands.push({ kind: "escape", node: node.init ?? node.id });
|
||||
for (const child of childNodes(node).reverse())
|
||||
pending.push({ node: child, parent: node });
|
||||
}
|
||||
@@ -445,7 +444,7 @@ export function* collectSemanticMemberMutationsSteps(
|
||||
const target = receiverReference
|
||||
? [...receiver, ...reference.path]
|
||||
: reference.path;
|
||||
if (operand.kind === "escape")
|
||||
if (operand.kind === "escape" || t.isSuper(operand.node))
|
||||
effects.push({ node: targetRoot, path: target });
|
||||
else
|
||||
pending.push({
|
||||
|
||||
Reference in new issue
Block a user