WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
7745
charAt layout test fails on intel macs; some NaNs are printed as -NaN
https://bugs.webkit.org/show_bug.cgi?id=7745
Summary
charAt layout test fails on intel macs; some NaNs are printed as -NaN
Maciej Stachowiak
Reported
2006-03-12 18:11:42 PST
LayoutTests/fast/js/char-at.html fails on intel macs, some of the NaN values print as -NaN. According to the ECMA-262 specification there should be no such thing as -NaN and indeed, other browsers print all NaN values as NaN. Converting to string is the only way to observe the difference, so fixing the string conversion is enough to fix the problem.
Attachments
don't ever convert a NaN to a string as "-NaN"
(1022 bytes, patch)
2006-03-12 18:14 PST
,
Maciej Stachowiak
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Maciej Stachowiak
Comment 1
2006-03-12 18:14:35 PST
Created
attachment 7038
[details]
don't ever convert a NaN to a string as "-NaN"
Darin Adler
Comment 2
2006-03-12 20:44:41 PST
Comment on
attachment 7038
[details]
don't ever convert a NaN to a string as "-NaN" Looks fine. r=me
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug