Bug 106179

Summary: Number.MIN_VALUE should take support for denormal numbers into account
Product: WebKit Reporter: Dominic Szablewski <dominic.szablewski>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal CC: barraclough, fpizlo, ggaren
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Dominic Szablewski
Reported 2013-01-05 09:01:27 PST
When running JSC in a process without support for denormal numbers (default on iOS6) Number.MIN_VALUE gets round down to 0, which is not very helpful. If denormal numbers are supported MIN_VALUE should return 5E-324, or 2.2250738585072014E-308 (DBL_MIN) otherwise.
Attachments
Geoffrey Garen
Comment 2 2013-01-07 11:04:56 PST
I think std::numeric_limits<double>::denorm_min() would be better here.
Geoffrey Garen
Comment 3 2013-01-07 11:05:17 PST
Note You need to log in before you can comment on or make changes to this bug.