Symbol.hasInstance and [[Get]] vs [[GetOwnProperty]]

Allen Wirfs-Brock allen at wirfs-brock.com
Tue Aug 16 17:37:25 UTC 2016


> On Aug 16, 2016, at 9:56 AM, Andrea Giammarchi <andrea.giammarchi at gmail.com> wrote:
> 
> fwiw I agree with Jason thanks gosh inheritance worked as expected even for public statics.
> 
> If you want to overwrite the inherited behaviour just do that on class B and eventually C.
> 
And if you want to revert to the default behavior set the value of B or C’s [Symbol.hasInstance] own property to undefined.



More information about the es-discuss mailing list