[Webkit-unassigned] [Bug 67537] Implement a ProgressEvent constructor for JSC
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 6 20:47:17 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=67537
--- Comment #9 from Kentaro Hara <haraken at google.com> 2011-09-06 20:47:17 PST ---
(In reply to comment #8)
> I think I was too hasty, there. This is what should happen:
>
> * The literal 18446744073709551615 gets parsed as the JS Number 18446744073709552000.
Cameron: Why do you think that 18446744073709551615 should be parsed as 18446744073709552000?
The ECMA-262 says that the ECMA Number should be the closest double value (Section 8.5: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf). Therefore, toNumber(18446744073709551615) should be 18446744073709551616, since 18446744073709551616=2^64 can be exactly represented as a 64-bit double. In fact, JSValue::toNumber() converts 18446744073709551615 to 18446744073709551616.
On the other hand, as you know, 18446744073709551615 is evaluated in JavaScript as 18446744073709552000 (e.g. alert(18446744073709551615)), but I do not know why this behavior is correct...
--
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