[Webkit-unassigned] [Bug 67537] Implement a ProgressEvent constructor for JSC

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 6 22:13:52 PDT 2011


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





--- Comment #12 from Kentaro Hara <haraken at google.com>  2011-09-06 22:13:52 PST ---
(In reply to comment #11)
> (In reply to comment #10)
> > (In reply to comment #9)
> > > 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...
> > 
> > Is it the correct output from http://people.mozilla.org/~jorendorff/es5.html#sec-9.8.1?
> 
> Ah, makes sense! Thanks!

I am sorry for this rubber-stamp "make sense". It does not make sense.

> 5. Otherwise, let n, k, and s be integers such that k ≥ 1, 10^(k−1) ≤ s < 10^k, the Number value for s × 10^(n−k) is m, and k is as small as possible. Note that k is the number of digits in the decimal representation of s, that s is not divisible by 10, and that the least significant digit of s is not necessarily uniquely determined by these criteria.

If m = 18446744073709551615, then k = 20, n = 20, s = 18446744073709551615.

> 6. If k ≤ n ≤ 21, return the String consisting of the k digits of the decimal representation of s (in order, with no leading zeroes), followed by n−k occurrences of the character ‘0’.

Returns a String "18446744073709551615".

-- 
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