Equality Reform(ul)ation

Kevin Smith zenparsing at gmail.com
Wed Jan 15 05:10:57 PST 2014


>
>
>> js> 0L == "0"
>> typein:2:0 TypeError: no operator function found for ==
>>
>
>
And what does this do?

    0L == { valueOf() { return 0 } }

Is the Object-type operand converted to a primitive before the overload is
matched?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140115/4955682f/attachment.html>


More information about the es-discuss mailing list