aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-13 12:35:12 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-13 12:35:12 +1000
commit2dbacc0031513a110c3ea62afb086020184150e7 (patch)
treec9e99742bb97c9040719902fa4406844b781a8ee
parenta6dc1dbf5a439a854581927fb36fdad05d0dff4b (diff)
downloadfengari-2dbacc0031513a110c3ea62afb086020184150e7.tar.gz
fengari-2dbacc0031513a110c3ea62afb086020184150e7.tar.bz2
fengari-2dbacc0031513a110c3ea62afb086020184150e7.zip
lua-cli: Fix missing settop()
-rwxr-xr-xtests/manual-tests/lua-cli.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/manual-tests/lua-cli.js b/tests/manual-tests/lua-cli.js
index de64359..a8f1928 100755
--- a/tests/manual-tests/lua-cli.js
+++ b/tests/manual-tests/lua-cli.js
@@ -40,6 +40,7 @@ for (;;) {
}
if (status !== lua.thread_status.LUA_OK) {
lauxlib.lua_writestringerror(`${lapi.lua_tojsstring(L, -1)}\n`);
+ lapi.lua_settop(L, 0);
continue;
}
if (lapi.lua_pcall(L, 0, lua.LUA_MULTRET, 0) !== lua.thread_status.LUA_OK) {