From 3df90fdbac4e290b96b01e8745678a2c8d1e17ec Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 2 Apr 2018 13:53:47 +1000 Subject: tests/lmathlib.js: Skip failing test in node <= 6 --- tests/lmathlib.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lmathlib.js b/tests/lmathlib.js index b50c59c..1de0f0c 100644 --- a/tests/lmathlib.js +++ b/tests/lmathlib.js @@ -176,7 +176,8 @@ test('math.log', function (t) { }); -test('math.exp', function (t) { +/* Node.js 6 has incorrect results for Math.exp */ +(parseInt(process.versions.node) > 6 ? test : test.skip)('math.exp', function (t) { let luaCode = ` return math.exp(10) `, L; -- cgit v1.2.3-70-g09d2