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

Change get_constrained_memory binding to return nil instead of 0 #647

Open
squeek502 opened this issue May 20, 2023 · 0 comments
Open

Change get_constrained_memory binding to return nil instead of 0 #647

squeek502 opened this issue May 20, 2023 · 0 comments
Labels

Comments

@squeek502
Copy link
Member

squeek502 commented May 20, 2023

From the libuv docs:

If there is no such constraint, or the constraint is unknown, 0 is returned.

Our Lua binding can make this API a bit more user-friendly by converting 0 to nil before returning. This would be a breaking change, though.

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

No branches or pull requests

1 participant