Skip to content

Commit 0904479

Browse files
committed
Update on "[compiler] Add lowerContextAccess pass"
*This is only for internal profiling, not intended to ship.* This pass is intended to be used with #30407. This pass synthesizes selector functions by collecting immediately destructured context acesses. We bailout for other types of context access. This pass lowers context access to use a selector function by passing the synthesized selector function as the second argument. [ghstack-poisoned]
2 parents d39f2fd + b9031f7 commit 0904479

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/packages/babel-plugin-react-compiler/src/Optimization/LowerContextAccess.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ function getContextKeys(value: Destructure): Array<string> | null {
120120

121121
case 'ObjectPattern': {
122122
for (const place of pattern.properties) {
123-
debugger;
124123
if (
125124
place.kind !== 'ObjectProperty' ||
126125
place.type !== 'property' ||

0 commit comments

Comments
 (0)