← back to v159 · webtransporterror-api-alignment-and-serialization
conformance · v159
v159 · webtransporterror-api-alignment-and-serialization — conformance probe
9 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.
0
pass
0
fail
0
blocked
9
total
| id | contract | kind | verdict | detail |
|---|---|---|---|---|
interface-exposed |
WebTransportError is exposed as a constructor in secure Window contexts. spec ↗ | typeof | … | |
default-constructor-shape |
new WebTransportError() yields name "WebTransportError", legacy code 0, message "", source "stream" and a null streamErrorCode, and is a DOMException. spec ↗ | script | … | |
standard-constructor-message-and-options |
The standard (message, options) constructor sets message, source "session" and a streamErrorCode above 8 bits (70000). spec ↗ | script | … | |
string-only-first-argument |
A string first argument alone selects the standard overload and becomes the message (source defaults to "stream"). spec ↗ | script | … | |
invalid-source-rejected-as-enum |
An options.source outside the WebTransportErrorSource enum throws TypeError, while a valid "session" source is accepted. spec ↗ | script | … | |
stream-error-code-clamps-to-unsigned-long |
options.streamErrorCode is [Clamp] unsigned long: 2^33 clamps to 4294967295 and -5 clamps to 0. spec ↗ | script | … | |
structured-clone-preserves-fields |
structuredClone() of a WebTransportError returns a new WebTransportError with the same message, source and streamErrorCode. spec ↗ | script | … | |
structured-clone-preserves-null-code |
Serialization keeps a null streamErrorCode null (not 0) and keeps source "stream". spec ↗ | script | … | |
postmessage-delivers-webtransporterror |
A WebTransportError posted through a MessageChannel arrives as a WebTransportError with its source and streamErrorCode. spec ↗ | script | … |