Closed JohnRiv closed 2 months ago
It turns out the ECMAScript compatibility table hasn't been updated with all of the ECMAScript 2024 features, so here's my research result for each new feature:
/v
flag for creating RegExps with more advanced features for working with sets of strings:
Promise.withResolvers
convenience method for constructing Promises:
Object.groupBy
and Map.groupBy
methods for aggregating data:
Object.groupBy
and Map.groupBy
Atomics.waitAsync
method for asynchronously waiting for a change to shared memory:
String.prototype.isWellFormed
and String.prototype.toWellFormed
methods for checking and ensuring that strings contain only well-formed Unicode:
String.prototype.isWellFormed
and String.prototype.toWellFormed
2/3 of the spec's new features are available, so we can either leave WMAS2024's ECMAScript support at ECMAScript 2023, or we can update it to ECMAScript 2024 with the following exceptions noted:
- Resizable ArrayBuffers and growable SharedArrayBuffers are not yet widely supported.
- The
Atomics.waitAsync
method is not yet widely supported.
In addition, here is the research for the 2 exceptions currently listed for ECMAScript 2023:
/v
flag)So we can remove those 2 exceptions
ECMAScript 2024 was approved & published on June 26th
Agreed to merge at HATF call on Sept 4, 2024
We currently reference ECMAScript® 2023.
ECMAScript 2024 appears to already have been published.
Taking a look at the ECMAScript compatibility table, we'll likely have WMAS2024 reference ECMAScript® 2024 with some noted exceptions for the new features.
As we've done in years past (2023, 2022, 2021, 2020, 2019), this issue will track what new items to include from ECMAScript.