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

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

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

> > ES6 could provide a Mapping class, in a standard module, that works like
> > this:
> >
> >
> > 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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list