Re: [heycam/webidl] Is it true that dictionaries can't have a default value specified? (#585)

What always has a default value?

In the current state of the IDL spec, optional dictionary arguments in trailing position always have a  default value.   I think that non-trailing-position ones should too.  But dictionary-typed members of dictionaries  do _not_ have a default value, and there are specs relying on that at this point.   Firefox used to give them a default value and we just stopped doing that because of those specs.  See  <https://github.com/heycam/webidl/issues/76>. However some other specs _do_ want to default those to empty dictionary, I suspect.  Hence this issue.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/585#issuecomment-425419122

Received on Friday, 28 September 2018 12:25:58 UTC