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

Yusuke Suzuki utatane.tea at gmail.com
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: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120930/1737fc62/attachment.html>


More information about the es-discuss mailing list