summaryrefslogtreecommitdiff
path: root/tests/test-suite/closure.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-19 15:33:06 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-19 15:33:06 +0200
commit705574bf31fc57cc3513e441fb83cae09b2d0bae (patch)
tree5c9da206b465964f3ad0a7a57772dc8f14d00009 /tests/test-suite/closure.js
parentb894a194ac468e9da1613d4161094ea4dc902e34 (diff)
downloadfengari-705574bf31fc57cc3513e441fb83cae09b2d0bae.tar.gz
fengari-705574bf31fc57cc3513e441fb83cae09b2d0bae.tar.bz2
fengari-705574bf31fc57cc3513e441fb83cae09b2d0bae.zip
Updated README to reflect progress
Diffstat (limited to 'tests/test-suite/closure.js')
-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