You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess the debug package has the sethook() function.
But I didn't test it on go-lua. I'll test it later today!
Using the Lua "C" library, I was able to limite the instructions count (IC). But the dangerous function should bee called with pcall() inside the Lua script, to avoid errors. And hooking into IC event, we can stop the loop.
I also need such feature into my own project with go-lua.
What if the Lua script is something like
while true do end
Is there any method that could kill such running lua script?
The text was updated successfully, but these errors were encountered: