LGTM2
On 9/16/23 8:22 AM, Yoav Weiss wrote:
LGTM1
Very neat!! That would definitely have simplified some testing code I
recently wrote :)
On Fri, Sep 15, 2023 at 1:50 AM 'Shu-yu Guo' via blink-dev
<blink-dev@chromium.org> wrote:
Contact emails
s...@chromium.org
Explainer
None
https://github.com/tc39/proposal-promise-with-resolvers/blob/main/README.md
seems to be the explainer for this. (which I found useful)
Specification
https://tc39.es/proposal-promise-with-resolvers
Summary
Promise.withResolvers is a static methods that returns a new
Promise along with its resolver functions, i.e. `const { promise,
resolve, reject } = Promise.withResolvers()`. This is a standard
version of a common helper function found in many JS libraries.
Historically, some may know it as `defer` or `deferred`.
Blink component
Blink>JavaScript>Language
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EJavaScript%3ELanguage>
TAG review
None
TAG review status
Not applicable
Risks
Interoperability and Compatibility
Very little risk. 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=259153) This is a Stage 3
TC39 proposal.
/Web developers/: Positive
/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
Will this feature be supported on all six Blink platforms
(Windows, Mac, Linux, Chrome OS, 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>?
In test262
<https://github.com/tc39/test262/tree/1db9a49eb93fd99f97100bf8ebceabf4d45949e3/test/built-ins/Promise/withResolvers>.
Flag name on chrome://flags
--js-promise-withresolvers
Finch feature name
JavaScriptPromiseWithResolvers
Requires code in //chrome?
False
Estimated milestones
Shipping on desktop 119
DevTrial on desktop 117
Shipping on Android 119
DevTrial on Android 117
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/5810984110784512
Links to previous Intent discussions
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-C0T4tV-8kOVfYZVG1nL9wXqK-twi-Tj3fFp3K8V398Q%40mail.gmail.com
<https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAN-e9e-C0T4tV-8kOVfYZVG1nL9wXqK-twi-Tj3fFp3K8V398Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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/CAL5BFfUAbkMkS6wuNiat9DJv1VCgz8es5wdbXMAQkydcdjoJ%2BQ%40mail.gmail.com
<https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfUAbkMkS6wuNiat9DJv1VCgz8es5wdbXMAQkydcdjoJ%2BQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
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/d4b87868-7193-4f74-bfd7-39c3e57aca0a%40chromium.org.