Intent to Ship: Promise.try

37 views
Skip to first unread message

Shu-yu Guo

unread,
6:25 PM (2 hours ago) 6:25 PM
to blink-dev

Contact emails

s...@chromium.org

Explainer

None

Specification

https://tc39.es/proposal-promise-try

Summary

Promise.try is a new static method. `Promise.try(f)` is shorthand for `new Promise(resolve => resolve(f()))`.



Blink component

Blink>JavaScript>Language

TAG review

None

TAG review status

Not applicable

Risks



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)?

Yes

Is this feature fully tested by web-platform-tests?

Yes

Test262: https://github.com/tc39/test262/tree/main/test/built-ins/Promise/try



Flag name on chrome://flags

--js-promise-try

Finch feature name

kJavaScriptPromiseTry

Requires code in //chrome?

False

Estimated milestones

DevTrial on desktop128
DevTrial on Android128


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).

None

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/6315704705089536?gate=5106880681869312

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages