Bug 19272
Summary: | Clean up NAN in JavaScriptCore? | ||
---|---|---|---|
Product: | WebKit | Reporter: | Darin Adler <darin> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Minor | CC: | barraclough, darin, ggaren, sam |
Priority: | P3 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 |
Darin Adler
JavaScriptCore uses the following redundant ways to get the double NAN:
function std::numeric_limits<double>::quiet_NaN()
global KJS::NaN
macro NAN
There's also code that says (isnan || isinf) where it could more efficiently say !isfinite instead. We should clean this up. I'd like to see KJS::NaN and KJS::Inf go away entirely.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Gavin Barraclough
*** This bug has been marked as a duplicate of bug 16777 ***