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

[Bug 28601] Converting an ECMAScript value to a dictionary; use [[GetOwnProperty]] or [[Get]]?

From: <bugzilla@jessica.w3.org>
Date: Mon, 04 May 2015 21:57:36 +0000
To: public-script-coord@w3.org
Message-ID: <bug-28601-3890-01nvP4RBep@http.www.w3.org/Bugs/Public/>

Boris Zbarsky <bzbarsky@mit.edu> changed:

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

--- Comment #3 from Boris Zbarsky <bzbarsky@mit.edu> ---
> "For each dictionary member member declared on dictionary, in order"

If you look at how "dictionary" is defined, it comes from "For each dictionary
dictionary in dictionaries" and "dictionaries" is "a list consisting of D and
all of D’s inherited dictionaries" where D is an IDL dictionary type.

So "dictionary" in the above phrase is an IDL dictionary type, not a JS value
or IDL value, and "declared on dictionary" means as a member of the relevant
dictionary type.

There is not checking for a member going on at all, in other words.  You just
take all the members listed in your IDL, and for each one you do a [[Get]] on
the JS object.

And to answer your question in comment 0, for the typical way events are
defined, you can in fact pass an event instance to that event's constructor and
it will work.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 4 May 2015 21:57:37 UTC

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