summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-02-07 21:55:34 +0100
committerBenoit Giannangeli <giann008@gmail.com>2017-02-07 21:55:34 +0100
commit364326b97450564d41d37cdc7b2c4fbb8049c62f (patch)
treedd22cf1a0ae16632842ac5057e272e59e711426a /tests
parentc7b6e2364b3ff9bed781215f57a6398979b287d4 (diff)
downloadfengari-364326b97450564d41d37cdc7b2c4fbb8049c62f.tar.gz
fengari-364326b97450564d41d37cdc7b2c4fbb8049c62f.tar.bz2
fengari-364326b97450564d41d37cdc7b2c4fbb8049c62f.zip
First CallInfo expects LUA_MULTRET results
Diffstat (limited to 'tests')
-rw-r--r--tests/lvm.js2
1 files changed, 1 insertions, 1 deletions
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"
);