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

fix(napi): functions related to errors #17370

Merged
merged 19 commits into from
Jan 15, 2023
Merged
4 changes: 2 additions & 2 deletions cli/napi/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ fn napi_get_node_version(
env: *mut Env,
result: *mut *const napi_node_version,
) -> Result {
let _: &mut Env = env.as_mut().ok_or(Error::InvalidArg)?;
crate::check_arg!(result);
crate::check_env!(env);
crate::check_arg!(env, result);

*result = &NODE_VERSION as *const napi_node_version;
Ok(())
Expand Down
Loading