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

Upgrade to latest version of ECMAScript 2021/ 2022 #498

Open
ganeshkbhat opened this issue Apr 29, 2023 · 2 comments
Open

Upgrade to latest version of ECMAScript 2021/ 2022 #498

ganeshkbhat opened this issue Apr 29, 2023 · 2 comments

Comments

@ganeshkbhat
Copy link

ganeshkbhat commented Apr 29, 2023

Thank you for writing this ast. Love you all for that. I am following you for this. Do you plan to updat this to latest versions of ECMA script? :-)

ES5	ECMAScript 5 (2009)

Added "strict mode"
Added JSON support
Added String.trim()
Added Array.isArray()
Added Array iteration methods
Allows trailing commas for object literals

ES6	ECMAScript 2015

Added let and const
Added default parameter values
Added Array.find()
Added Array.findIndex()

ECMAScript 2016

Added exponential operator (**)
Added Array.includes()

ECMAScript 2017

Added string padding
Added Object.entries()
Added Object.values()
Added async functions
Added shared memory
Allows trailing commas for function parameters

ECMAScript 2018

Added rest / spread properties
Added asynchronous iteration
Added Promise.finally()
Additions to RegExp

ECMAScript 2019

String.trimStart()
String.trimEnd()
Array.flat()
Object.fromEntries
Optional catch binding


ECMAScript 2020

The Nullish Coalescing Operator (??)

ECMAScript 2021

Promise any():
const first = await Promise.any([prom1,prom2,prom3]);
String replaceAll()
Numeric Separators (_)

ECMAScript 2022

Array Method at()
String Method at()
RegExp /d
Object.hasOwn()
error.cause
await import
Private methods and fields
Class field declarations
@PaluMacil
Copy link
Contributor

At a glance, most of what you listed is already implemented. You can see what's enabled in the test suite to see a more comprehensive list of features. Module support is pretty massive, and you can check on the progress here: #430 However, other than await import, nothing else on your list jumps out to me.

@progrium
Copy link

progrium commented Apr 4, 2024

I think asynchronous iteration (for await ..) from es2018 stands out to me as not supported yet.

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

3 participants