[heycam/webidl] We should disallow a default value for required dictionary members in the grammar (#569)

When we added TypeWithExtendedAttributes, we split up the DictionaryMember production into two cases:

    required TypeWithExtendedAttributes identifier Default ;
    Type identifier Default ;

We should remove the "Default" from the "required" case, since there is already prose that says:

    A required dictionary member must not have a default value.

It's just that back when we had a single grammar production for dictionary members, with an optional "required" keyword at the front and "Default" at the end, this was not forbidden on the grammar level.  But now it would be simple to forbid it there.

-- 
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/569

Received on Saturday, 30 June 2018 04:53:02 UTC