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.github.io/ecma262/#sec-math.hypot
13 $({ target: 'Math', stat: true, forced: BUGGY }, {
14 hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars
17 var aLen = arguments.length;
21 arg = abs(arguments[i++]);
24 sum = sum * div * div + 1;
31 return larg === Infinity ? Infinity : larg * sqrt(sum);