W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2015

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 04 Feb 2015 03:25:44 +0000
To: public-script-coord@w3.org
Message-ID: <bug-27953-3890-wkHK9MSjVK@http.www.w3.org/Bugs/Public/>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:23 UTC