primitive boxing in instanceof due to Symbol.hasInstance

Allen Wirfs-Brock allen at wirfs-brock.com
Tue Jun 16 14:12:57 UTC 2015


On Jun 16, 2015, at 6:04 AM, Bradley Meck wrote:

> You are correct, it is not the primitive being boxed, but the primitive being passed into @@hasInstance.

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-instanceofoperator doesn't box O passed into the the @@hasInstance method.  See step 4.a.   Are you using a transpiler?  Maybe it is buggy.

Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150616/0b09323e/attachment.html>


More information about the es-discuss mailing list