mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 01:13:39 +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
@@ -10,8 +10,8 @@ export const semanticCoercionOperands = (
|
||||
if (node.operator === "instanceof") return [node.left, node.right];
|
||||
if (
|
||||
["==", "!="].includes(node.operator) &&
|
||||
isObject(node.left) &&
|
||||
isObject(node.right)
|
||||
((t.isThisExpression(node.left) && t.isThisExpression(node.right)) ||
|
||||
(isObject(node.left) && isObject(node.right)))
|
||||
)
|
||||
return [];
|
||||
return node.operator === "in" ? [node.left] : [node.left, node.right];
|
||||
|
||||
Reference in new issue
Block a user