Contact emails
s...@chromium.orgExplainer
NoneSpecification
https://tc39.es/proposal-promise-trySummary
Promise.try is a new static method. `Promise.try(f)` is shorthand for `new Promise(resolve => resolve(f()))`.
Blink component
Blink>JavaScript>LanguageTAG review
NoneTAG review status
Not applicableRisks
Interoperability and Compatibility
None. This is a new static method on the Promise constructor.
Gecko: Positive This is a Stage 3 TC39 proposal.
WebKit: Positive (
https://bugs.webkit.org/show_bug.cgi?id=275359) This is a Stage 3 TC39 proposal.
Web developers: No signals
Other signals:
WebView application risks
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
Debuggability
None
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?
YesYesTest262: https://github.com/tc39/test262/tree/main/test/built-ins/Promise/try
Flag name on chrome://flags
--js-promise-tryFinch feature name
kJavaScriptPromiseTryRequires code in //chrome?
FalseEstimated milestones
Anticipated spec changes
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
NoneLink to entry on the Chrome Platform Status
https://chromestatus.com/feature/6315704705089536?gate=5106880681869312