Contact emails...@chromium.org

ExplainerNone

Specificationhttps://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 componentBlink>JavaScript>Language
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EJavaScript%3ELanguage>

TAG reviewNone

TAG review statusNot 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
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?Yes

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


Flag name on chrome://flags--js-promise-try

Finch feature namekJavaScriptPromiseTry

Requires code in //chrome?False

Estimated milestones
DevTrial on desktop 128
DevTrial on Android 128

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
<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAN-e9e-DDG5a-Q1d0955b15kS-hSPx91vpHqrdv61yUAiCyarg%40mail.gmail.com.

Reply via email to