Must built-in prototypes also be valid instances? (Was: Why DataView.prototype object's [[Class]] is "Object"?)

Yusuke Suzuki utatane.tea at
Sat Sep 29 22:29:36 PDT 2012

> Mark S. Miller wrote:

 Security aside, given maximin
>>     class Foo
>> what do you suggest Foo.prototype be?
I suggest adding @@toStringTag:"Foo" property to Foo.prototype when `class
Foo` is executed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list