Closed j-f1 closed 2 years ago
This is due to how Web IDL works. The type of attributes don't really matter, and it's easier to create a Function
in spec text. Whereas the types of dictionary members have normative impacts on how inputs are processed and called.
Hope this helps!
Both
ByteLengthQueuingStrategy
andCountQueuingStrategy
are defined as having areadonly attribute Function size
. However, the definition forQueuingStrategy
has a specific type for this field:QueuingStrategySize
. Is there a reason these two interfaces do not use the more specific type?