From 364326b97450564d41d37cdc7b2c4fbb8049c62f Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 7 Feb 2017 21:55:34 +0100 Subject: First CallInfo expects LUA_MULTRET results --- tests/lvm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/lvm.js b/tests/lvm.js index 084a9ad..c93b1ed 100644 --- a/tests/lvm.js +++ b/tests/lvm.js @@ -108,7 +108,7 @@ test('Binary op', function (t) { }, "Program executed without errors"); t.deepEqual( - vm.L.stack.slice(vm.L.stack.length - 12).map(function (e) { return e.value; }), + vm.L.stack.slice(vm.L.top - 12, vm.L.top).map(function (e) { return e.value; }), [15, -5, 50, 0.5, 5, 9765625.0, 0, 0, 15, 15, 5120, 0], "Program output is correct" ); -- cgit v1.2.3-70-g09d2