mirror of
https://github.com/morluto/rea.git
synced 2026-11-12 01:41:21 +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
@@ -365,6 +365,14 @@ class GetterResultWalker {
|
||||
#visit(current: GetterWork): void {
|
||||
const expression = unwrapJavaScriptExpression(current.node).node;
|
||||
if (t.isIdentifier(expression) && this.#alias(current, expression)) return;
|
||||
if (t.isForOfStatement(expression)) {
|
||||
this.#enqueue(() => ({
|
||||
...current,
|
||||
node: expression.right,
|
||||
path: [null, ...current.path],
|
||||
}));
|
||||
return;
|
||||
}
|
||||
if (t.isThisExpression(expression) || t.isSuper(expression))
|
||||
this.#thisValue(current, expression);
|
||||
else if (
|
||||
|
||||
Reference in new issue
Block a user