LPGhatguy / lemur

Partial implementation of Roblox API in Lua
MIT License
63 stars 25 forks source link

Allow pcall to yield #170

Open Kampfkarren opened 5 years ago

Kampfkarren commented 5 years ago

Fix might be some coroutine magic and whatever environment logic #104 comes with.

LPGhatguy commented 5 years ago

Fixing this is probably pretty crazy all-in-all.

Kampfkarren commented 5 years ago

Would a custom Lua VM for Lemur be on the table? Here's a Lua5.1 patch file for getting this to work, aside from then xpcall would yield when it doesn't in Roblox, and some weird stuff like epcall.