diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:02:09 +0200 |
commit | 363723fc84f7b8477592e0105aeb331ec9a017af (patch) | |
tree | 29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/core-js/modules/es6.math.sinh.js | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
Diffstat (limited to 'node_modules/core-js/modules/es6.math.sinh.js')
-rw-r--r-- | node_modules/core-js/modules/es6.math.sinh.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/node_modules/core-js/modules/es6.math.sinh.js b/node_modules/core-js/modules/es6.math.sinh.js index 5464ae3e6..57606333c 100644 --- a/node_modules/core-js/modules/es6.math.sinh.js +++ b/node_modules/core-js/modules/es6.math.sinh.js @@ -1,15 +1,15 @@ // 20.2.2.30 Math.sinh(x) -var $export = require('./_export') - , expm1 = require('./_math-expm1') - , exp = Math.exp; +var $export = require('./_export'); +var expm1 = require('./_math-expm1'); +var exp = Math.exp; // V8 near Chromium 38 has a problem with very small numbers -$export($export.S + $export.F * require('./_fails')(function(){ +$export($export.S + $export.F * require('./_fails')(function () { return !Math.sinh(-2e-17) != -2e-17; }), 'Math', { - sinh: function sinh(x){ + sinh: function sinh(x) { return Math.abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); } -});
\ No newline at end of file +}); |