Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardcrash when an error is raised while generating an error #354

Open
SReject opened this issue May 7, 2024 · 0 comments
Open

Hardcrash when an error is raised while generating an error #354

SReject opened this issue May 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SReject
Copy link

SReject commented May 7, 2024

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):

  • OS: Windows 10
  • OS Version: 22H2
  • CraftOS-PC Version: v2.8.2
  • Compiled from source? no
@SReject SReject added the bug Something isn't working label May 7, 2024
@SReject SReject changed the title Hardcrash when an error is raised while generating an error: Hardcrash when an error is raised while generating an error May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant