From a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sat, 11 Feb 2017 08:53:10 +0100 Subject: Fixed bad tailcall, _ENV is a closed upvalue --- tests/lvm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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, -- cgit v1.2.3-70-g09d2