diff options
author | daurnimator <quae@daurnimator.com> | 2017-04-13 12:35:12 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-04-13 12:35:12 +1000 |
commit | 2dbacc0031513a110c3ea62afb086020184150e7 (patch) | |
tree | c9e99742bb97c9040719902fa4406844b781a8ee /tests | |
parent | a6dc1dbf5a439a854581927fb36fdad05d0dff4b (diff) | |
download | fengari-2dbacc0031513a110c3ea62afb086020184150e7.tar.gz fengari-2dbacc0031513a110c3ea62afb086020184150e7.tar.bz2 fengari-2dbacc0031513a110c3ea62afb086020184150e7.zip |
lua-cli: Fix missing settop()
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/manual-tests/lua-cli.js | 1 |
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) { |