MCPcopy
hub / github.com/rollup/rollup / requireEs_math_atanh

Function requireEs_math_atanh

test/form/samples/supports-core-js/_expected.js:8372–8393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8370var hasRequiredEs_math_atanh;
8371
8372function requireEs_math_atanh () {
8373 if (hasRequiredEs_math_atanh) return es_math_atanh;
8374 hasRequiredEs_math_atanh = 1;
8375 var $ = require_export();
8376
8377 // eslint-disable-next-line es/no-math-atanh -- required for testing
8378 var $atanh = Math.atanh;
8379 var log = Math.log;
8380
8381 var FORCED = !($atanh && 1 / $atanh(-0) < 0);
8382
8383 // `Math.atanh` method
8384 // https://tc39.es/ecma262/#sec-math.atanh
8385 // Tor Browser bug: Math.atanh(-0) -> 0
8386 $({ target: 'Math', stat: true, forced: FORCED }, {
8387 atanh: function atanh(x) {
8388 var n = +x;
8389 return n === 0 ? n : log((1 + n) / (1 - n)) / 2;
8390 }
8391 });
8392 return es_math_atanh;
8393}
8394
8395var es_math_cbrt = {};
8396

Callers 1

requireFullFunction · 0.85

Calls 2

require_exportFunction · 0.85
logFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…