Describe the bug
if an error is raised while error() is preparing to raise, craftos-ps crashes
To Reproduce
Save the following script and run it
local crash = setmetatable({}, {
__tostring = function ()
-- error: attempt to apply arithmetic operator to string
return 'abc' + '123';
end
});
error(crash);
Expected behavior
A graceful termination of execution
Environment (please complete the following information):
Describe the bug if an error is raised while error() is preparing to raise, craftos-ps crashes
To Reproduce Save the following script and run it
Expected behavior A graceful termination of execution
Environment (please complete the following information):