Logical operators don't use valueOf()

Marius Gundersen gundersen at gmail.com
Sat Sep 7 09:10:17 PDT 2013

While playing around with valueOf, I discovered that three operators (!,
||, &&) don' seem to use valueOf when you use them. You can test this in
your preferred browser here: http://lab.mariusgundersen.net/valueOf

Is there a reason for this? Shouldn't these operators work the same way as
the other operators?

Marius Gundersen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130907/46f15624/attachment.html>

More information about the es-discuss mailing list