We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2164d20 commit 5b3fbd3Copy full SHA for 5b3fbd3
1 file changed
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/AlignObjectMethodScopes.ts
@@ -48,9 +48,11 @@ function findScopesToMerge(fn: HIRFunction): DisjointSet<ReactiveScope> {
48
const lvalueScope = lvalue.identifier.scope;
49
50
if (operandScope == null || lvalueScope == null) {
51
- // FunctionExpressions used as object properties may not always
52
- // have scopes (e.g. if they were pruned). ObjectMethods must
53
- // always have scopes.
+ /*
+ * FunctionExpressions used as object properties may not always
+ * have scopes (e.g. if they were pruned). ObjectMethods must
54
+ * always have scopes.
55
+ */
56
if (objectMethodDecls.has(operand.identifier)) {
57
CompilerError.invariant(false, {
58
reason:
0 commit comments