Remove required and [EnforceRange] attributes from readonly dictionaries - #559
Remove required and [EnforceRange] attributes from readonly dictionaries#559twiss wants to merge 1 commit into
Conversation
annevk
left a comment
There was a problem hiding this comment.
I have not verified that these dictionaries are only used as return values.
(I also think we should change Web IDL at some point so required is fine for return values as it's kinda useful there for code generation and indicating the member will be present.)
|
Right, sorry, I saw your other comment too late. It's a bit out of scope here but maybe it would be sensible to flip the defaults, and have Edit: created whatwg/webidl#1628 and whatwg/webidl#1629 for this. |
Remove the
requiredand[EnforceRange]attributes of all properties ofKeyAlgorithmdictionaries, which are only used on thealgorithmproperty ofCryptoKey, which isreadonly.WebIDL says:
and:
(even though the attributes themselves are not
readonly, thealgorithmattribute ofCryptoKeyis).Preview | Diff