massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / es.math.asinh.js
1 var $ = require('../internals/export');
2
3 // eslint-disable-next-line es/no-math-asinh -- required for testing
4 var $asinh = Math.asinh;
5 var log = Math.log;
6 var sqrt = Math.sqrt;
7
8 function asinh(x) {
9   return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : log(x + sqrt(x * x + 1));
10 }
11
12 // `Math.asinh` method
13 // https://tc39.es/ecma262/#sec-math.asinh
14 // Tor Browser bug: Math.asinh(0) -> -0
15 $({ target: 'Math', stat: true, forced: !($asinh && 1 / $asinh(0) > 0) }, {
16   asinh: asinh
17 });