[Webkit-unassigned] [Bug 22654] Wrong behavior of value() of BooleanObject
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 4 12:15:21 PST 2008
https://bugs.webkit.org/show_bug.cgi?id=22654
------- Comment #1 from jade.han at nokia.com 2008-12-04 12:15 PDT -------
There's some error in the original code, here's more accurate one:
if JSValue value is a type of BooleanObject,
value->toBoolean();
will always return true.
You have to call
asBooleanObject(value)->internalValue()->toBoolean();
to retrieve the real boolean value.
--
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