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

Progress on const, let and async functions #715

Closed
AlexanderEggers opened this issue Mar 30, 2022 · 2 comments
Closed

Progress on const, let and async functions #715

AlexanderEggers opened this issue Mar 30, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@AlexanderEggers
Copy link

I noticed that in https://github.com/facebook/hermes/blob/main/doc/Features.md, there are a few items which are unclear which part of these features are missing/still in progress:

  • let and const (block scoped variables, with support for the temporal dead zone)
  • Async function (async and await)

I have a project running with Hermes which is using these language features, so I am having a hard time understanding this part of your documentation. I would appreciate it, if someone could clarify that for me.

@AlexanderEggers AlexanderEggers added the enhancement New feature or request label Mar 30, 2022
@neildhar
Copy link
Contributor

Hi @AlexanderEggers

  • let and const in Hermes are currently on hold, but we've found that babel transforms can cover most use cases (see Lacking support for ES6 block scoping #575 for more context)
  • Async functions are currently supported, and you should be able to use them

We're also working on making the feature documentation more comprehensive (#701).

@AlexanderEggers
Copy link
Author

Thanks for the quick answer @neildhar. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants