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