[Bug 27953] Dictionaries with required properties shouldn't need to be optional

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27953

Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bzbarsky@mit.edu

--- Comment #2 from Boris Zbarsky <bzbarsky@mit.edu> ---
Except that's not how optional dictionaries behave in the spec at the moment. 
Optional dictionaries always have the default value null (or
Object.create(null) if you prefer to think of it that way; the behavior is
identical), so not passing the argument for an optional dictionary is the same
thing as passing null or Object.create(null), which is guaranteed to throw if
the dictionary has a required member.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 4 February 2015 03:25:45 UTC