-
Notifications
You must be signed in to change notification settings - Fork 285
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
Wrap all Node-API functions in neon-runtime to check status #802
Comments
@kmescharikov The wrappers are defined by this macro here: Then all the usages of these functions in |
Thank you! I'll try |
A suggestion: |
Currently every usage of a Node-API function checks the status. This is almost always required for safety, but it's easy to fix.
Since all Node-API FFI bindings are defined in a macro and all functions return
napi_status
, we could wrap them to returnResult<(), Status>
instead and use the linter to ensure theResult
is checked.The text was updated successfully, but these errors were encountered: