summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/lmathlib.js3
1 files changed, 2 insertions, 1 deletions
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;