Allow C functions to yield (unforseen consequences be damned)

This commit is contained in:
Michael Pfaff 2023-07-06 22:13:31 -04:00
parent 76bea81a7b
commit d0b9ad3c48
Signed by: michael
GPG Key ID: CF402C4A012AA9D4
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ static void resume_continue(lua_State* L)
int n = cl->c.cont(L, 0);
// Continuation can break again
if (L->status == LUA_BREAK)
if (L->status == LUA_BREAK || L->status == LUA_YIELD)
break;
luau_poscall(L, L->top - n);