Bug 106179
Summary: | Number.MIN_VALUE should take support for denormal numbers into account | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dominic Szablewski <dominic.szablewski> |
Component: | JavaScriptCore | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Dominic Szablewski
Proposed solution: https://github.com/phoboslab/JavaScriptCore-iOS/commit/2573cbcd68f0c4129bef943a2c3e2fa6bd1e06f8
Geoffrey Garen
I think std::numeric_limits<double>::denorm_min() would be better here.
Geoffrey Garen
<rdar://problem/12966887>