Skip to content

Conversation

@asquared31415
Copy link

@asquared31415 asquared31415 commented Dec 18, 2025

The Lua reference manual says about coroutine.wrap:

In case of error, the function closes the coroutine and propagates the error.

The current implementation was not propagating the error. Instead, it was ignoring the status of the resume and returning the data as-is. This meant that user programs using coroutine.wrap would end up ignoring errors and getting part of the error message as a string.

The implementation is copied from machine.lua's sandboxed version of the method.

This was causing user programs using coroutine.wrap to ignore errors or in some cases get part of the error message as a string, instead of properly propagating the error like it should.

The implementation is copied from machine.lua's sandboxed version of the method.
@Dream-Master Dream-Master added the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Dec 19, 2025
@boubou19 boubou19 enabled auto-merge (squash) January 5, 2026 01:00
@boubou19 boubou19 merged commit 9a7bd2f into GTNewHorizons:master Jan 5, 2026
1 check passed
@Dream-Master Dream-Master removed the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants