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

os.exit: Do not return error when code is 0 #297

Open
dnbsd opened this issue Dec 24, 2024 · 0 comments
Open

os.exit: Do not return error when code is 0 #297

dnbsd opened this issue Dec 24, 2024 · 0 comments

Comments

@dnbsd
Copy link

dnbsd commented Dec 24, 2024

Steps to reproduce:

$ cat > /tmp/runme.risor
import os
os.exit(0)
$ risor --virtual-os /tmp/runme.risor
eval error: exit(0)

I think the function should return object.Nil instead. I am able to create a pull request if the issue is accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant