Math.hypot definition needs fix to conform to IEEE754

# Roger Andrews (14 years ago)

Section 15.8.2.28 in es6libraryextensions.pdf describes the result of Math.hypot as NaN if x or y is NaN. I believe IEEE754 defines hypot of Infinity with anything (even NaN) as Infinity, thus:

hypot(Infinity,NaN) == hypot(NaN,-Infinity) == Infinity

# Luke Hoban (14 years ago)

Section 15.8.2.28 in es6libraryextensions.pdf describes the result of Math.hypot as NaN if x or y is NaN. I believe IEEE754 defines hypot of Infinity with anything (even NaN) as Infinity, thus:

hypot(Infinity,NaN) == hypot(NaN,-Infinity) == Infinity

Thanks - I've fixed this in the working draft which we'll be integrating into the ES6 draft spec soon.

Luke