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

Generator methods are not transpiled correctly #462

Closed
itsbth opened this issue Jun 25, 2019 · 0 comments · Fixed by #463
Closed

Generator methods are not transpiled correctly #462

itsbth opened this issue Jun 25, 2019 · 0 comments · Fixed by #463

Comments

@itsbth
Copy link
Contributor

itsbth commented Jun 25, 2019

Even with no transformers enabled, generator methods are converted to normal methods, likely leading to an error on the yield keyword.

class Foo {
  *generator() {
    yield 32;
  }
}

is transpiled to

class Foo {
  generator() {
    yield 32;
  }
}
itsbth added a commit to itsbth/sucrase that referenced this issue Jun 25, 2019
alangpierce pushed a commit that referenced this issue Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant