[Webkit-unassigned] [Bug 34170] [Qt] Javascript undefined > 0 returns true on Symbian
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 27 07:15:51 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=34170
--- Comment #6 from Kent Hansen <kent.hansen at nokia.com> 2010-01-27 07:15:50 PST ---
(In reply to comment #5)
> insanity check Number.NaN > 0 returns true. Looks like we have a winner.
So did the Open C guys respond regarding numeric_limits<double>::quiet_NaN()
being buggy?
Here's a quick work-around for Qt you might want to try in
JSValue::nonInlineNaN:
#if PLATFORM(QT)
return qQNaN();
#endif
qQNaN and friends are declared in src/corelib/global/qnumeric.h.
I wonder why JSValue is the only place that depends on
numeric_limits<double>::quiet_NaN? There's code near the top of JSCell.cpp that
constructs NaN and Infinity from raw bits if necessary. It's basically what the
qnumeric implementation does as well (see qnumeric_p.h).
Maybe the robust fix would be to make the distinction between quiet NaN and
signaling NaN in that code, and change JSValue to use that constant.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list