mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
napi: respect --quiet flag in unimplemented warnings (#16935)
This commit is contained in:
parent
83b6085604
commit
918518b506
2 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ fn napi_add_env_cleanup_hook(
|
|||
_hook: extern "C" fn(*const c_void),
|
||||
_data: *const c_void,
|
||||
) -> Result {
|
||||
eprintln!("napi_add_env_cleanup_hook is currently not supported");
|
||||
log::info!("napi_add_env_cleanup_hook is currently not supported");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ fn napi_remove_env_cleanup_hook(
|
|||
_hook: extern "C" fn(*const c_void),
|
||||
_data: *const c_void,
|
||||
) -> Result {
|
||||
eprintln!("napi_remove_env_cleanup_hook is currently not supported");
|
||||
log::info!("napi_remove_env_cleanup_hook is currently not supported");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
@ -737,7 +737,7 @@ fn napi_make_callback(
|
|||
}
|
||||
|
||||
if !async_context.is_null() {
|
||||
eprintln!("napi_make_callback: async_context is not supported");
|
||||
log::info!("napi_make_callback: async_context is not supported");
|
||||
}
|
||||
|
||||
let recv = transmute::<napi_value, v8::Local<v8::Value>>(recv);
|
||||
|
@ -1006,7 +1006,7 @@ fn napi_add_finalizer(
|
|||
_finalize_hint: *const c_void,
|
||||
_result: *mut napi_ref,
|
||||
) -> Result {
|
||||
eprintln!("napi_add_finalizer is not yet supported.");
|
||||
log::info!("napi_add_finalizer is not yet supported.");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue