Skip to content
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

refactor(transformer/async-to-generator): move handling of MethodDefinition's value to exit_function #7105

Commits on Nov 4, 2024

  1. refactor(transformer/async-to-generator): move handling of `MethodDef…

    …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
    Dunqing committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    f80085c View commit details
    Browse the repository at this point in the history