1 var $ = require('../internals/export');
3 // eslint-disable-next-line es/no-math-hypot -- required for testing
4 var $hypot = Math.hypot;
9 // https://bugs.chromium.org/p/v8/issues/detail?id=9546
10 var BUGGY = !!$hypot && $hypot(Infinity, NaN) !== Infinity;
12 // `Math.hypot` method
13 // https://tc39.es/ecma262/#sec-math.hypot
14 $({ target: 'Math', stat: true, forced: BUGGY }, {
15 // eslint-disable-next-line no-unused-vars -- required for `.length`
16 hypot: function hypot(value1, value2) {
19 var aLen = arguments.length;
23 arg = abs(arguments[i++]);
26 sum = sum * div * div + 1;
33 return larg === Infinity ? Infinity : larg * sqrt(sum);