> > > https://people.mozilla.org/~jorendorff/es6-draft.html#sec-instanceofoperator > calls GetMethod on C without checking if it is an Object, this means `1 > instanceof Foo` could be affected by mutating > `Number.prototype[Symbol.hasInstance]`. >
I assume you mean "without checking if O is an object" > I am assuming this is unintended? > IIUC the point of @@hasInstance is to allow the programmer to define completely arbitrary semantics for "instanceof" when applied to "C", even if C is a built-in. Do you see a problem with this behavior?
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

