X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fcore-js%2Fmodules%2Fes.math.atanh.js;h=0605c7721441841edd578c1c6caf1a622dcf3cd8;hp=e5a57cae064cafa99a9bc4e04e0b0a6f36a8b82c;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.math.atanh.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.math.atanh.js index e5a57cae..0605c772 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.math.atanh.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.math.atanh.js @@ -1,12 +1,13 @@ var $ = require('../internals/export'); -var nativeAtanh = Math.atanh; +// eslint-disable-next-line es/no-math-atanh -- required for testing +var $atanh = Math.atanh; var log = Math.log; // `Math.atanh` method // https://tc39.es/ecma262/#sec-math.atanh // Tor Browser bug: Math.atanh(-0) -> 0 -$({ target: 'Math', stat: true, forced: !(nativeAtanh && 1 / nativeAtanh(-0) < 0) }, { +$({ target: 'Math', stat: true, forced: !($atanh && 1 / $atanh(-0) < 0) }, { atanh: function atanh(x) { return (x = +x) == 0 ? x : log((1 + x) / (1 - x)) / 2; }