On May 27, 2012, at 4:13 PM, Brendan Eich wrote:

> David Bruant wrote:
>> With this definition, it's not possible to subclass the DOM
>> constructors, since they all throw. The DOM API itself would need to be
>> changed to allow subclassing.
> 
> Neither classes as proposed (sugar for the prototypal pattern) nor __proto__ 
> can fix the DOM.
> 
> Note that Date has the same issue. You cannot make a SubDate because the 
> internal state is not exposed to subclassers via private names. Allen propose 
> to fix this, but I'm not sure of the proposal or status.

see my comments in 
https://mail.mozilla.org/pipermail/es-discuss/2012-May/022899.html 

proposal for subclass built-ins on the way...

Allen

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to