On Mon, Jun 8, 2015 at 4:38 PM, Nick Krempel <[email protected]> wrote: > 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.
You're right. Sorry. So, what is left? Is Reflect.type useful? Adding `Undefined` and `Null` as types for which `Object(null) instanceof Null` etc. seems unnecessary, since we'd use triple-equal comparison. _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

