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

Document required ECMAscript version #911

Open
2 tasks
fhammerschmidt opened this issue Sep 11, 2024 · 0 comments
Open
2 tasks

Document required ECMAscript version #911

fhammerschmidt opened this issue Sep 11, 2024 · 0 comments
Milestone

Comments

@fhammerschmidt
Copy link
Member

fhammerschmidt commented Sep 11, 2024

I don't think we have documented the requirements on the JS version / spec at the moment.

Starting with v12, ES6 (ECMAScript 2015) is required because we are now making use of the following ES6 features:

  • let keyword
  • arrow functions
  • spread operator

Originally posted by @cknitt in rescript-lang/rescript-compiler#7030 (comment)


Document for both:

  • v11 is mostly es5 (some stdlib functions may already have been es6)
  • v12 is just es6
@fhammerschmidt fhammerschmidt added this to the v12.0 milestone Sep 12, 2024
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

No branches or pull requests

1 participant