Non-generic traps for non-generic objects (was: Overriding Map/etc with get/set hooks?)

Jason Orendorff jason.orendorff at gmail.com
Fri May 31 08:05:43 PDT 2013


On Tue, May 28, 2013 at 7:15 PM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:

> > ES6 could provide a Mapping class, in a standard module, that works like
> > this:
> >   https://gist.github.com/jorendorff/5662673
> >
> > All those methods are generic. Map would be a subclass of Mapping, with
> its
> > own fast non-generic methods [...]
>
> This would be *absolutely ideal*.  It would be cool if tc39 defined
> this; if not, WebIDL should be able to pick up the slack. [...]
>

Is any TC39 member interested in putting this on the agenda for the next
meeting?

If DOM really wants this, ES (not WebIDL) should provide it.  WebIDL can't
make Map a subclass of Mapping.

-j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130531/93e414f6/attachment-0001.html>


More information about the es-discuss mailing list