From 5817639609bd1a9391cee015e4c2b516753ca734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Tue, 7 May 2024 12:17:45 +0200 Subject: [PATCH] Map Test262 using a new field Identifiers must be from https://github.com/tc39/test262/blob/main/features.txt. --- features/array-at.yml | 3 +++ features/array-by-copy.yml | 1 + features/array-findlast.yml | 1 + features/array-flat.yml | 3 +++ features/array-group.yml | 1 + features/array-includes.yml | 1 + features/async-await.yml | 1 + features/bigint.yml | 1 + features/class-syntax.yml | 1 + features/map.yml | 1 + features/promise-allsettled.yml | 1 + features/promise-any.yml | 1 + features/promise-finally.yml | 1 + features/promise-withresolvers.yml | 1 + features/promise.yml | 1 + features/set-methods.yml | 1 + features/set.yml | 1 + features/temporal.yml | 1 + features/transferable-arraybuffer.yml | 1 + features/typed-arrays.yml | 15 +++++++++++++++ 20 files changed, 38 insertions(+) diff --git a/features/array-at.yml b/features/array-at.yml index 75d365c6b95..207bf8ee1a5 100644 --- a/features/array-at.yml +++ b/features/array-at.yml @@ -5,3 +5,6 @@ snapshot: ecmascript-2022 group: - arrays - typed-arrays +test262: + - Array.prototype.at + - TypedArray.prototype.at diff --git a/features/array-by-copy.yml b/features/array-by-copy.yml index f2b02693bc8..f1acb072d08 100644 --- a/features/array-by-copy.yml +++ b/features/array-by-copy.yml @@ -31,3 +31,4 @@ compat_features: - javascript.builtins.TypedArray.toReversed - javascript.builtins.TypedArray.toSorted - javascript.builtins.TypedArray.with +test262: change-array-by-copy diff --git a/features/array-findlast.yml b/features/array-findlast.yml index 33ce6e9a1af..bb056d8388c 100644 --- a/features/array-findlast.yml +++ b/features/array-findlast.yml @@ -25,3 +25,4 @@ compat_features: - javascript.builtins.Array.findLastIndex - javascript.builtins.TypedArray.findLast - javascript.builtins.TypedArray.findLastIndex +test262: array-find-from-last diff --git a/features/array-flat.yml b/features/array-flat.yml index c6ef0b51c86..e4881aa0f15 100644 --- a/features/array-flat.yml +++ b/features/array-flat.yml @@ -6,3 +6,6 @@ spec: - https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.flatmap snapshot: ecmascript-2019 group: arrays +test262: + - Array.prototype.flat + - Array.prototype.flatMap diff --git a/features/array-group.yml b/features/array-group.yml index 9b89146ccba..1784a07260a 100644 --- a/features/array-group.yml +++ b/features/array-group.yml @@ -2,3 +2,4 @@ name: Array grouping description: The `Object.groupBy()` and `Map.groupBy()` static methods group values of arrays and iterables based on a function that returns a key for each value. spec: https://tc39.es/proposal-array-grouping/ group: maps +test262: array-grouping diff --git a/features/array-includes.yml b/features/array-includes.yml index 7f552c9bf74..4f4cf27f0f2 100644 --- a/features/array-includes.yml +++ b/features/array-includes.yml @@ -21,3 +21,4 @@ status: compat_features: - javascript.builtins.Array.includes - javascript.builtins.TypedArray.includes +test262: Array.prototype.includes # does not cover typed arrays diff --git a/features/async-await.yml b/features/async-await.yml index bcc5e3ea26e..8c87ec7c3d7 100644 --- a/features/async-await.yml +++ b/features/async-await.yml @@ -3,3 +3,4 @@ description: The `async` and `await` keywords allow you to use the asynchronous, spec: https://tc39.es/ecma262/multipage/ecmascript-language-functions-and-classes.html#sec-async-function-definitions caniuse: async-functions snapshot: ecmascript-2017 +test262: async-functions diff --git a/features/bigint.yml b/features/bigint.yml index 5166b12505e..68c511c9e90 100644 --- a/features/bigint.yml +++ b/features/bigint.yml @@ -3,3 +3,4 @@ description: The `BigInt` JavaScript type represents integers of any size, inclu spec: https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-bigint-objects caniuse: bigint snapshot: ecmascript-2020 +test262: BigInt diff --git a/features/class-syntax.yml b/features/class-syntax.yml index b31bd3f7a72..b7f4030f6d5 100644 --- a/features/class-syntax.yml +++ b/features/class-syntax.yml @@ -3,3 +3,4 @@ description: Classes are an object-oriented syntax for JavaScript prototypes. caniuse: es6-class spec: https://tc39.es/ecma262/multipage/ecmascript-language-functions-and-classes.html#sec-class-definitions snapshot: ecmascript-2015 +test262: class diff --git a/features/map.yml b/features/map.yml index 36b0c5329eb..ec4ce365cdf 100644 --- a/features/map.yml +++ b/features/map.yml @@ -48,3 +48,4 @@ compat_features: - javascript.builtins.Map.values - javascript.builtins.Map.@@iterator - javascript.builtins.Map.@@species +test262: Map diff --git a/features/promise-allsettled.yml b/features/promise-allsettled.yml index 53be9ee5c33..886aa7b6b26 100644 --- a/features/promise-allsettled.yml +++ b/features/promise-allsettled.yml @@ -15,3 +15,4 @@ status: safari_ios: "13" compat_features: - javascript.builtins.Promise.allSettled +test262: Promise.allSettled diff --git a/features/promise-any.yml b/features/promise-any.yml index b586daaed35..c0cb2204570 100644 --- a/features/promise-any.yml +++ b/features/promise-any.yml @@ -15,3 +15,4 @@ status: safari_ios: "14" compat_features: - javascript.builtins.Promise.any +test262: Promise.any diff --git a/features/promise-finally.yml b/features/promise-finally.yml index 03ccf1ab1b7..665f36bb17d 100644 --- a/features/promise-finally.yml +++ b/features/promise-finally.yml @@ -16,3 +16,4 @@ status: safari_ios: "11.3" compat_features: - javascript.builtins.Promise.finally +test262: Promise.prototype.finally diff --git a/features/promise-withresolvers.yml b/features/promise-withresolvers.yml index cc26b32b4ab..3118ef201b7 100644 --- a/features/promise-withresolvers.yml +++ b/features/promise-withresolvers.yml @@ -14,3 +14,4 @@ status: safari_ios: "17.4" compat_features: - javascript.builtins.Promise.withResolvers +test262: promise-with-resolvers diff --git a/features/promise.yml b/features/promise.yml index f82373fb903..4e7a534a735 100644 --- a/features/promise.yml +++ b/features/promise.yml @@ -34,3 +34,4 @@ compat_features: - javascript.builtins.Promise.reject - javascript.builtins.Promise.resolve - javascript.builtins.Promise.then +test262: Promise diff --git a/features/set-methods.yml b/features/set-methods.yml index 5aa2c62cb87..4e6a03dffd8 100644 --- a/features/set-methods.yml +++ b/features/set-methods.yml @@ -17,3 +17,4 @@ compat_features: - javascript.builtins.Set.isSupersetOf - javascript.builtins.Set.symmetricDifference - javascript.builtins.Set.union +test262: set-methods diff --git a/features/set.yml b/features/set.yml index d1d1777b66d..ac0317facc9 100644 --- a/features/set.yml +++ b/features/set.yml @@ -32,3 +32,4 @@ compat_features: - javascript.builtins.Set.values - javascript.builtins.Set.@@iterator - javascript.builtins.Set.@@species +test262: Set diff --git a/features/temporal.yml b/features/temporal.yml index 315c7f91187..6f6a0bb9565 100644 --- a/features/temporal.yml +++ b/features/temporal.yml @@ -2,3 +2,4 @@ name: Temporal description: The `Temporal` API allows you to work with dates, times, time zones, and durations. It is more powerful than the `Date` API. spec: https://tc39.es/proposal-temporal/ caniuse: temporal +test262: Temporal diff --git a/features/transferable-arraybuffer.yml b/features/transferable-arraybuffer.yml index a28cb6dbcd2..c10160aacca 100644 --- a/features/transferable-arraybuffer.yml +++ b/features/transferable-arraybuffer.yml @@ -6,3 +6,4 @@ compat_features: - javascript.builtins.ArrayBuffer.transfer - javascript.builtins.ArrayBuffer.transferToFixedLength - javascript.builtins.ArrayBuffer.detached +test262: arraybuffer-transfer diff --git a/features/typed-arrays.yml b/features/typed-arrays.yml index 67a4134d59f..b2f9e745e3c 100644 --- a/features/typed-arrays.yml +++ b/features/typed-arrays.yml @@ -72,6 +72,10 @@ compat_features: - javascript.builtins.Uint16Array.Uint16Array - javascript.builtins.Uint16Array.Uint16Array.constructor_without_parameters - javascript.builtins.Uint16Array.Uint16Array.iterable_allowed + - javascript.builtins.Uint32Array + - javascript.builtins.Uint32Array.Uint32Array + - javascript.builtins.Uint32Array.Uint32Array.constructor_without_parameters + - javascript.builtins.Uint32Array.Uint32Array.iterable_allowed - javascript.builtins.Uint8Array - javascript.builtins.Uint8Array.Uint8Array - javascript.builtins.Uint8Array.Uint8Array.constructor_without_parameters @@ -79,3 +83,14 @@ compat_features: - javascript.builtins.Uint8ClampedArray - javascript.builtins.Uint8ClampedArray.Uint8ClampedArray - javascript.builtins.Uint8ClampedArray.Uint8ClampedArray.iterable_allowed +test262: + - Float32Array + - Float64Array + - Int16Array + - Int32Array + - Int8Array + - TypedArray + - Uint16Array + - Uint32Array + - Uint8Array + - Uint8ClampedArray