Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Intent to Ship: Error.isError

230 views
Skip to first unread message

Chromestatus

unread,
Jan 6, 2025, 12:51:37 PMJan 6
to blin...@chromium.org, s...@chromium.org

Contact emails

s...@chromium.org

Explainer

None

Specification

https://tc39.es/proposal-is-error

Summary

Adds the Error.isError(obj) static method. It returns true for JS native errors and DOMExceptions, and false otherwise.



Blink component

Blink>JavaScript>Language

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

None



Gecko: Positive This is a Stage 3 TC39 proposal.

WebKit: Positive 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. It is a new static method on Error.



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

https://github.com/tc39/test262/pull/4266 https://github.com/web-platform-tests/wpt/pull/49133



Flag name on about://flags

--js-error-iserror

Finch feature name

V8Flag_js_error_iserror

Requires code in //chrome?

False

Measurement

WebDXFeature::kErrorIserror

Estimated milestones

Shipping on desktop 134
DevTrial on desktop 133
Shipping on Android 134
DevTrial on Android 133
Shipping on WebView 134


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/5847855083028480?gate=6156767049023488

This intent message was generated by Chrome Platform Status.

Mike Taylor

unread,
Jan 6, 2025, 2:09:25 PMJan 6
to Shu-yu Guo, Chromestatus, blin...@chromium.org

LGTM1

--
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+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/677c181c.2b0a0220.2e82a8.0090.GAE%40google.com.

Yoav Weiss (@Shopify)

unread,
Jan 7, 2025, 5:49:27 AMJan 7
to Mike Taylor, Shu-yu Guo, Chromestatus, blin...@chromium.org

Daniel Bratell

unread,
Jan 8, 2025, 1:40:21 AMJan 8
to Yoav Weiss (@Shopify), Mike Taylor, Shu-yu Guo, Chromestatus, blin...@chromium.org
Reply all
Reply to author
Forward
0 new messages