The class operator: a bridge between object and function exemplers

Allen Wirfs-Brock allen at wirfs-brock.com
Thu Nov 17 11:17:37 PST 2011


On Nov 17, 2011, at 9:47 AM, Jake Verbaten wrote:

> 5 Let proto be the value of the [[Prototype]] internal property of obj.
> 6 Return the result of evaluating this algorithm using the value of proto as the value of UnaryExpression
> 
> What is the point of calling class recursively on the [[Prototype]] if the object does not have constructor or [[ctor]] ?

let Point = class {x:0,y:0};
let instance = new Point;
if ((class instance) is Point) ...

Allen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20111117/8bbb3624/attachment-0001.html>


More information about the es-discuss mailing list