Skip to content

Fix crash when using lualib_bundle in an environment without coroutines#1547

Merged
Perryvw merged 3 commits intoTypeScriptToLua:masterfrom
GlassBricks:fix-no-coroutine
Mar 21, 2024
Merged

Fix crash when using lualib_bundle in an environment without coroutines#1547
Perryvw merged 3 commits intoTypeScriptToLua:masterfrom
GlassBricks:fix-no-coroutine

Conversation

@GlassBricks
Copy link
Contributor

This PR fixes a crash that occurs when using lualib_bundle in an environment without coroutine (the coroutine global is undefined).
In the Factorio lua environment, coroutines are not supported.

Instead, with a runtime error if coroutines are used, instead of a crash anytime lualib_bundle is imported.

@GlassBricks GlassBricks changed the title Fix no coroutine Fix crash when using lualib_bundle in an environment without coroutines Mar 17, 2024
@Perryvw Perryvw merged commit f610b5f into TypeScriptToLua:master Mar 21, 2024
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.

2 participants