From 5a622406741b098b54a16b53e7b930f8a6c37622 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 26 Aug 2024 11:04:00 +0200 Subject: [PATCH] Add Promise.try() --- features/promise-try.yml | 6 ++++++ features/promise-try.yml.dist | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 features/promise-try.yml create mode 100644 features/promise-try.yml.dist diff --git a/features/promise-try.yml b/features/promise-try.yml new file mode 100644 index 00000000000..2fe5c1cf8a0 --- /dev/null +++ b/features/promise-try.yml @@ -0,0 +1,6 @@ +name: Promise.try() +description: The `Promise.try()` static method returns a promise that takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result in a `Promise`. +spec: https://tc39.es/proposal-promise-try/ +group: promises +compat_features: + - javascript.builtins.Promise.try diff --git a/features/promise-try.yml.dist b/features/promise-try.yml.dist new file mode 100644 index 00000000000..22d1814af77 --- /dev/null +++ b/features/promise-try.yml.dist @@ -0,0 +1,10 @@ +# Generated from: promise-try.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "128" + chrome_android: "128" +compat_features: + - javascript.builtins.Promise.try