Skip to content

Commit

Permalink
[Tests] fix linting errors from ec76d49
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 7, 2017
1 parent 54f4deb commit 488b496
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -1896,10 +1896,12 @@
}

var a = _abs(x);
var aSquared = a * a;
var s = _sign(x);
if (a < 1) {
return _sign(x) * _log1p(a + a * a / (_sqrt(a * a + 1) + 1));
return s * _log1p(a + (aSquared / (_sqrt(aSquared + 1) + 1)));
}
return _sign(x) * (_log1p(a / 2 + _sqrt(1 + 1 / (a * a)) * a / 2 - 1) + 1 / LOG2E);
return s * (_log1p((a / 2) + (_sqrt(1 + (1 / aSquared)) * a / 2) - 1) + (1 / LOG2E));
},

atanh: function atanh(value) {
Expand Down Expand Up @@ -1949,7 +1951,7 @@
if (!globalIsFinite(x)) { return Infinity; }

var t = _exp(_abs(x) - 1);
return (t + 1 / (t * E * E)) * (E / 2);
return (t + (1 / (t * E * E))) * (E / 2);
},

expm1: function expm1(value) {
Expand Down

0 comments on commit 488b496

Please sign in to comment.