Reflect.type

Nick Krempel ndkrempel at google.com
Mon Jun 8 14:38:15 UTC 2015


On 8 June 2015 at 15:05, Thaddee Tyl <thaddee.tyl at gmail.com> wrote:

> Ah! Good. I expected it to fail just like this:
>
> ```js
> function Thing(){}
> function SubThing(){}
> SubThing.prototype = Object.create(Thing)  // BUG:
> Object.create(Thing.prototype) intended?
> SubThing.prototype.constructor = Thing
> Object(new SubThing) instanceof Thing  // Then this would be true.
> ```


That only fails because of the probable bug on the third line.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150608/2367f733/attachment.html>


More information about the es-discuss mailing list