WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
106179
Number.MIN_VALUE should take support for denormal numbers into account
https://bugs.webkit.org/show_bug.cgi?id=106179
Summary
Number.MIN_VALUE should take support for denormal numbers into account
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
Add attachment
proposed patch, testcase, etc.
Dominic Szablewski
Comment 1
2013-01-05 15:01:36 PST
Proposed solution:
https://github.com/phoboslab/JavaScriptCore-iOS/commit/2573cbcd68f0c4129bef943a2c3e2fa6bd1e06f8
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
<
rdar://problem/12966887
>
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