Standardizing __proto__
Boris Zbarsky
bzbarsky at MIT.EDU
Fri Mar 18 10:41:21 PDT 2011
On 3/18/11 1:33 PM, Oliver Hunt wrote:
> It also extends "trivially" to non-es objects, eg. Object.subclass(Image) or somesuch in the DOM, etc.
Note that currently WebIDL calls for that to not work (in the sense that
it examines the [[Class]] of DOM objects, so if you Object.create(new
HTMLImageElement()) the thing you get won't have working DOM
methods/properties on it).
Or am I misunderstanding your proposal?
-Boris
More information about the es-discuss
mailing list