fix(transformer): do no add __self when the jsx is inside constructor#3258
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #3258 will not alter performanceComparing Summary
|
a763145 to
d5ea2e4
Compare
d5ea2e4 to
50e950d
Compare
Fix bug with: 1. scopes not being created for functions. 2. too many scopes being created for class methods. i.e. Logic for when `Function` creates a scope was opposite of what it should be. Discovered by @Dunqing in #3258 (review).
I don't think we should. If we can rebase on top of #3273, then we can make sure the logic is correct before merging. |
50e950d to
1c2892e
Compare
|
@overlookmotel Please review this again. I think we can merge first |
@Dunqing Please see #3258 (comment) above. But if you prefer to merge this PR now, go ahead. Just please ping me and I'll look again and make a follow-up PR if necessary. |
…the_jsx_is_inside_constructor
|
@Dunqing I'm going to merge this. I do think there's still a couple of problems, but I'll do a follow-up PR. |
|
Turns out Dunqing's implementation was exactly correct. All my comments saying there were problems were completely wrong! |

No description provided.