Add lua_resume error check

This commit is contained in:
Austin 2022-05-24 13:23:51 -05:00
parent 6da0cc074e
commit 8d0b283771

View file

@ -230,6 +230,11 @@ if not limitedstack then
ehassert(pcall(function() return userdata[1] end)) -- LOP_GETTABLEN
ehassert(pcall(function() return userdata.StringConstant end)) -- LOP_GETTABLEKS (luau_callTM)
-- lua_resume test
local coro = coroutine.create(function() end)
ps, pe = coroutine.resume(coro)
ehassert(not ps and string.find(pe, "C stack overflow"))
return true
end, cso)