Skip to content

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Jul 24, 2025

Dictionary arguments cannot be nullable in Web IDL:

"Although dictionary types can in general be nullable, they cannot when
used as the type of an operation argument or a dictionary member."
https://webidl.spec.whatwg.org/#dfn-nullable-type

Note: this was missed before because the webidl2 checker did not validate arguments in callback definitions. It now does.


Preview | Diff

Dictionary arguments cannot be nullable in Web IDL:

> "Although dictionary types can in general be nullable, they cannot when
used as the type of an operation argument or a dictionary member."
> https://webidl.spec.whatwg.org/#dfn-nullable-type

Note: this was missed before because the webidl2 checker did not validate
arguments in callback definitions. It now does.
@gkellogg
Copy link
Member

Thanks, although this may be a controversial opinion, I think it is low-enough impact to be considered a class-2 change.

@gkellogg gkellogg requested a review from pchampin July 25, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
class-2 Class-2 change spec:bug
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants