[Webkit-unassigned] [Bug 129486] Implement Math.hypot

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 17 11:29:32 PDT 2014


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


Oliver Hunt <oliver at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brendan at mozilla.org




--- Comment #31 from Oliver Hunt <oliver at apple.com>  2014-03-17 11:29:53 PST ---
(In reply to comment #29)
> (In reply to comment #28)
> > (From update of attachment 226925 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=226925&action=review
> > 
> > review- because of incorrect behavior when Infinity and NaN are combined
> > 
> > > LayoutTests/js/math-expected.txt:94
> > > +PASS Math.hypot(1, NaN, Infinity) is Infinity
> > 
> > Shouldn’t the expected result here be NaN, not Infinity?
> 
> - The standard say: 
> If any argument is +∞, the result is +∞.
> If any argument is −∞, the result is +∞.
> If no argument is +∞ or −∞, and any argument is NaN, the result is NaN.

I suspect this is a spec bug.  We (AllenWB and I) are investigating -- cc'ing brendan, i'm not sure if AllenWB or dherman have b.w.o accounts

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