-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider aligning WebTransportError with upcoming guidance #425
Comments
@ricea does this SGTY? |
It's a breaking change, because writable.abort(new WebTransportError({streamErrorCode: WT_CODE})); will create a On the other hand, I've found no evidence of it being used outside tests. I have a mild preference for not changing it, because we'd have go through a shipping process for the change and there's no clear migration path, but I will be fine either way. |
Won't this be |
Almost anything is convertible to DOMString: https://webidl.spec.whatwg.org/#es-DOMString |
Meeting:
|
I suggest we make a decision on this at next meeting. |
Meeting:
|
In whatwg/webidl#1211, we're attempting to give guidance on how to subclass DOMException, in a similar way to what WebTransportError does. However, our guidance differs from what you've done in the constructor signature, which it suggests would be
(message, options)
instead of puttingmessage
insideoptions
.We also have some shorthands which can let you avoid creating your own "set up" and "create" operations, which might be nice.
Is it too late to change the constructor signature for WebTransportError? It's a small surface thing, so I don't really want to cause people to do a lot of compat work if it's already shipping and being used extensively. But I thought it'd be worth asking...
The text was updated successfully, but these errors were encountered: