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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 17 13:15:15 PDT 2014


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





--- Comment #32 from Oliver Hunt <oliver at apple.com>  2014-03-17 13:15:34 PST ---
(In reply to comment #31)
> (In reply to comment #29)
> > (In reply to comment #28)
> > > (From update of attachment 226925 [details] [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

Our consensus is that this is a spec bug, if any value is NaN the result should be NaN

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