mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Add lua_resume error check
This commit is contained in:
parent
6da0cc074e
commit
8d0b283771
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue