From 8b4e48f4f0271ecae980c6f756fd868c41db3c7b Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 26 Aug 2024 12:32:49 +0200 Subject: [PATCH 1/3] Add Async generators --- features/async-generators.yml | 17 +++++++++++++++++ features/async-generators.yml.dist | 25 +++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 features/async-generators.yml create mode 100644 features/async-generators.yml.dist diff --git a/features/async-generators.yml b/features/async-generators.yml new file mode 100644 index 00000000000..13be72da541 --- /dev/null +++ b/features/async-generators.yml @@ -0,0 +1,17 @@ +name: Async generators +description: Async generator functions (`async function*`) are asynchronous and always yield `Promise` objects. +group: javascript +snapshot: ecmascript-2017 +spec: + - https://tc39.es/ecma262/multipage/control-abstraction-objects.html#sec-asyncgeneratorfunction-objects + - https://tc39.es/ecma262/multipage/control-abstraction-objects.html#sec-asyncgenerator-objects +compat_features: + - javascript.builtins.AsyncGenerator + - javascript.builtins.AsyncGenerator.next + - javascript.builtins.AsyncGenerator.return + - javascript.builtins.AsyncGenerator.throw + - javascript.builtins.AsyncGeneratorFunction + - javascript.builtins.AsyncGeneratorFunction.AsyncGeneratorFunction + - javascript.functions.method_definitions.async_generator_methods + - javascript.operators.async_generator_function + - javascript.statements.async_generator_function diff --git a/features/async-generators.yml.dist b/features/async-generators.yml.dist new file mode 100644 index 00000000000..15acea1c77d --- /dev/null +++ b/features/async-generators.yml.dist @@ -0,0 +1,25 @@ +# Generated from: async-generators.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2020-01-15 + baseline_high_date: 2022-07-15 + support: + chrome: "63" + chrome_android: "63" + edge: "79" + firefox: "55" + firefox_android: "55" + safari: "12" + safari_ios: "12" +compat_features: + - javascript.builtins.AsyncGenerator + - javascript.builtins.AsyncGenerator.next + - javascript.builtins.AsyncGenerator.return + - javascript.builtins.AsyncGenerator.throw + - javascript.builtins.AsyncGeneratorFunction + - javascript.builtins.AsyncGeneratorFunction.AsyncGeneratorFunction + - javascript.functions.method_definitions.async_generator_methods + - javascript.operators.async_generator_function + - javascript.statements.async_generator_function From a1b46356c639af949a251375743cd9ad3c3eebaa Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Wed, 4 Sep 2024 19:58:58 +0200 Subject: [PATCH 2/3] Update features/async-generators.yml Co-authored-by: James Stuckey Weber --- features/async-generators.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/async-generators.yml b/features/async-generators.yml index 13be72da541..08ff0feb4e6 100644 --- a/features/async-generators.yml +++ b/features/async-generators.yml @@ -1,5 +1,5 @@ name: Async generators -description: Async generator functions (`async function*`) are asynchronous and always yield `Promise` objects. +description: Async generator functions (`async function*`) create iterators that return multiple Promises, one after another, on-demand. group: javascript snapshot: ecmascript-2017 spec: From 8880c686f8752b217e16b4476eb78366068d7cb0 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 16 Sep 2024 15:06:27 +0200 Subject: [PATCH 3/3] Update features/async-generators.yml Co-authored-by: Daniel D. Beck --- features/async-generators.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/async-generators.yml b/features/async-generators.yml index 08ff0feb4e6..66cac1b5558 100644 --- a/features/async-generators.yml +++ b/features/async-generators.yml @@ -1,5 +1,5 @@ name: Async generators -description: Async generator functions (`async function*`) create iterators that return multiple Promises, one after another, on-demand. +description: Async generator functions (`async function*`) create iterators that return multiple promises, one after another, on-demand. group: javascript snapshot: ecmascript-2017 spec: