Scenario: on.draw = function() f() end
f = function() f() end
Before this commit, the app would crash without error.
Summary of error handling in Lua and LÖVE:
4PL4QEWRE6FXUWJPVZ5RAJRXCC5G6FQK3ZTBJ4VCC2DN2HQKTP3AC
local callstack = debug.traceback('', --[[stack frame]]2)
local cleaned_up_error = 'Error: ' .. cleaned_up_frame(tostring(err))..'\n'..cleaned_up_callstack(callstack)
local cleaned_up_error = err
if not err:match('stack overflow') then
local callstack = debug.traceback('', --[[stack frame]]2)
cleaned_up_error = 'Error: ' .. cleaned_up_frame(tostring(err))..'\n'..cleaned_up_callstack(callstack)
else
-- call only primitive functions when we're out of stack space
end