mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[λ] Use lowerExpression to create captured identifier
This commit is contained in:
@@ -1675,12 +1675,7 @@ function gatherCapturedDeps(
|
||||
return;
|
||||
}
|
||||
|
||||
captured.add({
|
||||
kind: "Identifier",
|
||||
identifier: builder.resolveIdentifier(path),
|
||||
effect: Effect.Unknown,
|
||||
loc: path.node.loc ?? GeneratedSource,
|
||||
});
|
||||
captured.add(lowerExpressionToPlace(builder, path));
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user