I would expect that to be `true` same as `0 == {valueOf:Number}` would be

On Wed, Jan 15, 2014 at 5:10 AM, Kevin Smith <[email protected]> wrote:

>
>>> 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?
>
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to