Skip to content

Commit

Permalink
Maybe fix #3687
Browse files Browse the repository at this point in the history
  • Loading branch information
zeng-github01 committed Jan 7, 2025
1 parent 2502094 commit 9cf2fbe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ end
_coroutine.wrap = function(f)
local thread = coroutine.create(f)
return function(...)
return select(2, coroutine.resume(thread, ...))
local result, reason = coroutine.resume(thread, ...)
assert(result, reason)
return reason
end
end

Expand Down

0 comments on commit 9cf2fbe

Please sign in to comment.