aboutsummaryrefslogtreecommitdiff
path: root/tests/test-suite
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-suite')
-rw-r--r--tests/test-suite/closure.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-suite/closure.js b/tests/test-suite/closure.js
index 99bdbe5..3f63f17 100644
--- a/tests/test-suite/closure.js
+++ b/tests/test-suite/closure.js
@@ -8,8 +8,8 @@ const lua = require('../../src/lua.js');
const lauxlib = require('../../src/lauxlib.js');
const lualib = require('../../src/lualib.js');
-
-test("[test-suite] closure: testing equality", function (t) {
+// TODO: fengari doesn't cache closures yet/ever
+test("[test-suite] closure: testing equality", { skip: true }, function (t) {
let luaCode = `
a = {}
for i = 1, 5 do a[i] = function (x) return x + a + _ENV end end
@@ -100,6 +100,8 @@ test("[test-suite] closure: testing closures with 'for' control variable", funct
test("[test-suite] closure: testing closures with 'for' control variable x break", function (t) {
let luaCode = `
+ local t = {"a", "b"}
+
for i=1,3 do
f = function () return i end
break