[Bug 12248] Make objects first-class API citizens

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12248

--- Comment #33 from Boris Zbarsky <bzbarsky@mit.edu> 2011-03-16 17:43:43 UTC ---
> This continues to be a problematic restriction as we eventually intend to
> implement all DOM interfaces using ECMAScript native objects.

I think that would require some pretty major changes to the way all the various
web specs are being written.

For example, right now if interface Foo defines that member x is unsigned long,
then callees who take instances of Foo expect that the x they get is in fact
nonnegative.  If the implementation of the callee extracts the underlying C++
object from the ES object it has and calls into it directly, it has such a
guarantee.  If it needs to somehow deal with arbitrary props on the ES object
instead, then it needs to define a bunch of edge cases which are not defined in
any of the specs involved right now.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Wednesday, 16 March 2011 17:43:47 UTC