On 8 June 2015 at 15:05, Thaddee Tyl <[email protected]> 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.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to