mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix(napi): functions related to errors (#17370)
This commits fixes various NAPI functions related to creation and throwing of errors.
This commit is contained in:
parent
e4c6e6e95f
commit
df8bfa26be
7 changed files with 1071 additions and 305 deletions
|
@ -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(())
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue