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   

Description Dominic Szablewski 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.
Comment 2 Geoffrey Garen 2013-01-07 11:04:56 PST
I think std::numeric_limits<double>::denorm_min() would be better here.
Comment 3 Geoffrey Garen 2013-01-07 11:05:17 PST
<rdar://problem/12966887>