Skip to content

Commit

Permalink
Revert "fix(napi): functions related to errors (denoland#17370)"
Browse files Browse the repository at this point in the history
This reverts commit df8bfa2.
  • Loading branch information
MierenManz committed Jan 20, 2023
1 parent 025902f commit 3798cde
Show file tree
Hide file tree
Showing 7 changed files with 305 additions and 1,071 deletions.
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 {
crate::check_env!(env);
crate::check_arg!(env, result);
let _: &mut Env = env.as_mut().ok_or(Error::InvalidArg)?;
crate::check_arg!(result);

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

0 comments on commit 3798cde

Please sign in to comment.