Conversation
The first argument is optional, so the second one also needs to be.
|
@Kangz That seems reasonable to me. What do you think? |
|
Previews, as seen when this build job started (6a92d46): |
|
As raised offline to @foolip, this spec PR needs to be updated as https://gpuweb.github.io/gpuweb/#dom-gpupipelineerror-constructor thinks |
|
What was the intention between the spec as written? Maybe both arguments should be required instead of both being optional. In Chrome both are actually required, as calling |
|
The We could declare one of the enum values to be the default (probably |
|
I found #3709 which points to whatwg/webidl#1211. |
kainino0x
left a comment
There was a problem hiding this comment.
Yup, this is very much intentional, and per the example at https://webidl.spec.whatwg.org/#example-domexception-derived-interface. @beaufortfrancois found the correct context links. Please discuss with Domenic if you think this needs a change (see whatwg/webidl#1211 (comment)).
|
Thanks for the background on that, Kai! Still looks strange to me but it's pretty clear that the WebIDL spec expects this kind of usage based on the linked example. |
The first argument is optional, so the second one also needs to be.