From 8d0b28377121c5f52abd23542901b26e947ad713 Mon Sep 17 00:00:00 2001 From: Austin Date: Tue, 24 May 2022 13:23:51 -0500 Subject: [PATCH] Add lua_resume error check --- tests/conformance/errors.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/conformance/errors.lua b/tests/conformance/errors.lua index a4cc5f2b..d8dc9bd2 100644 --- a/tests/conformance/errors.lua +++ b/tests/conformance/errors.lua @@ -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)