[Webkit-unassigned] [Bug 80673] Type conversion of exponential part failed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 9 15:13:08 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=80673





--- Comment #2 from Mark Hahnenberg <mhahnenberg at apple.com>  2012-03-09 15:13:08 PST ---
You're correct that this is a regression as per the spec, but the way in which you've fixed this regression is probably not the way we want to go. The code you've modified was pulled in from an upstream open source repository (http://code.google.com/p/double-conversion/), and we probably want to leave it alone as much as possible. Also, the fact that we can ignore trailing junk strings at the end of otherwise valid numbers if we so choose is a feature, not a bug.

As you've already figured out, the issue is that the place that calls strtod expects parsing trailing junk strings to return NaN, but we're ignoring these trailing junk strings and just returning the valid prefix. Instead of removing the ability to ignore junk strings, as your current patch does, we need to pass the correct AllowJunkStringTag value to strtod when calling jsToNumber.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list