Bug 7745

Summary: charAt layout test fails on intel macs; some NaNs are printed as -NaN
Product: WebKit Reporter: Maciej Stachowiak <mjs>
Component: JavaScriptCoreAssignee: Maciej Stachowiak <mjs>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
don't ever convert a NaN to a string as "-NaN" darin: review+

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+
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.