-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(transformer/async-to-generator): handle this
within arrows function
#7074
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “0-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. |
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
this
within arrows function
CodSpeed Performance ReportMerging #7074 will degrade performances by 4.3%Comparing Summary
Benchmarks breakdown
|
1674cf5
to
ab06cc1
Compare
0d94534
to
38c99b6
Compare
ab06cc1
to
d320f62
Compare
38c99b6
to
8094309
Compare
…inition`'s value to `exit_function` (#7105) Part of #7074 We need to handle this before the `arrow_function` plugin inserts `_this = this` because, in the `async-to-generator` plugin, we will move the body to an inner generator function. However, we don't want `_this = this` moved to the inner generator function as well. So as long as we move first, and then insert, we can fix this problem. The new semantic error is related to another tricky problem, I will fix it in another PR
…thodDefinition`'s value to `exit_function` (oxc-project#7106) Part of oxc-project#7074 I have mentioned the reason why I need to move this in oxc-project#7105
…/ArrowFunctionConverter (oxc-project#7107) Part of oxc-project#7074 In order can reuse the ability of the `ArrowFunction` plugin, we moved out the implementation to common, then we can use use in other plugins
…ator` and `async-generator-functions` plugins (#7113) Part of #7074 In async-to-generator and async-generator-functions plugins, we may need to transform the async arrow function to a regular generator function, now we can reuse the ability of the ArrowFunction plugin by enabling `ArrowFunctionConverter`. I will fix semantic errors in the follow-up PR
Closing as this PR has split into many PRs and has been merged |
This is just a poc, I am going to split it into many PRs