[Webkit-unassigned] [Bug 22654] BooleanObject does not override toBoolean(), should it?

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 5 03:48:40 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22654





------- Comment #5 from ap at webkit.org  2008-12-05 03:48 PDT -------
Yes, I'm referring to the same. In JavaScript, the boolean value of a Boolean
object with internal value of false is true, as indicated by the example I gave
in comment 3. Or you could try "if (new Boolean(false)) alert("whoa")".

So, I don't think there's anything wrong with BooleanObject::toBoolean() always
returning true.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list