I fixed the following scenario in template-live-editor2: Windows.main.draw = function() f() end
f = function() f() end
Before this change, template-live-editor2 would crash but not throw an error.
While this happens on infinite recursion, it really needed just a call stack deeper than some threshold which triggers the '…' in the stack trace.
Summary of error handling in Lua and LÖVE:
This commit just ports the change to template-live-editor. However, the following scenario still silently crashes without an error message:
on.draw = function() f() end
f = function() f() end
The crash happens some time after the call to string.match in cleaned_up_filename. Control returns from string.match. However, any attempt to interact with the result of string.match fails.
Clearly there's something here I still don't understand.
RVFYJCLJ5TUNFBDEUDWG4DJIVE6YVHHUI7JIN4LRE56FPS2XBHEAC