Bug 41033
| Summary: | Math.LOG10E doesn't follow ECMA-262 spec (insufficient precision) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Paulo Freitas <me> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ggaren, oliver, pkasting |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Paulo Freitas
Not sure if it's a bug for you, but your Math.LOG10E is 0.43429448190325176 and ECMA-262 spec defines 0.4342944819032518 (i.e. you've one more level of precision). Sorry if it's irrelevant and/or bad categorized, I'm new here. :)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Paulo Freitas
Ah, sorry for forgetting: http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf, section 15.8.1, item 15.8.1.5 ;)
Geoffrey Garen
Marking as invalid based on Paulo's last comment.
Geoffrey Garen
Reopening based on alexey's comments in IRC. We might as well match the exact numbers in the spec, along with Firefox. We can just hard code them in MathObject.cpp. We should do this for all the constants, not just LOG10E.
Peter Kasting
This was fixed in bug 54899.
*** This bug has been marked as a duplicate of bug 54899 ***