Complete Minimal Classes

Kevin Smith khs4473 at gmail.com
Mon Apr 9 08:46:40 PDT 2012


>
> MyClass.call(Object.create(MyClass.prototype));
>
> it should call the [[Construct]]. i.e. if it should use [[Construct]] when
> 'this' is an instance of the class (inherits from it's prototype).
>

Of course, the above is equivalent to just "new MyClass(...)" (I think),
but I see your point. It may be enough to sink the idea.  Have to think
about it...

kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120409/ca6a800f/attachment.html>


More information about the es-discuss mailing list