From 488b49691f7bd6a5ab22939865b5b4fa0d604ee9 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 6 Apr 2017 22:45:31 -0700 Subject: [PATCH] [Tests] fix linting errors from ec76d49cb801a03fb0a98041e2bba190a41b8288 --- es6-shim.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/es6-shim.js b/es6-shim.js index 6df9c889..ada23718 100644 --- a/es6-shim.js +++ b/es6-shim.js @@ -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) { @@ -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) {