From 2dbacc0031513a110c3ea62afb086020184150e7 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 13 Apr 2017 12:35:12 +1000 Subject: lua-cli: Fix missing settop() --- tests/manual-tests/lua-cli.js | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/manual-tests') 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) { -- cgit v1.2.3-70-g09d2