aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-02-11 08:53:10 +0100
committerBenoit Giannangeli <giann008@gmail.com>2017-02-11 15:23:04 +0100
commita7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e (patch)
tree1420dfdb17660fd5ca243f25d279dbd308263f7e /tests
parent219d7cf24902b53385a1b6999e8bbf2c8512cf0b (diff)
downloadfengari-a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e.tar.gz
fengari-a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e.tar.bz2
fengari-a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e.zip
Fixed bad tailcall, _ENV is a closed upvalue
Diffstat (limited to 'tests')
-rw-r--r--tests/lvm.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lvm.js b/tests/lvm.js
index df01167..1af0c48 100644
--- a/tests/lvm.js
+++ b/tests/lvm.js
@@ -554,14 +554,14 @@ test('SETUPVAL, GETUPVAL', function (t) {
return f()
`, vm;
- t.plan(1);
+ t.plan(2);
t.comment("Running following code: \n" + luaCode);
- // t.doesNotThrow(function () {
+ t.doesNotThrow(function () {
vm = getVM(luaCode);
vm.execute();
- // }, "Program executed without errors");
+ }, "Program executed without errors");
t.strictEqual(
vm.L.stack[vm.L.top - 1].value,