mirror of
https://github.com/denoland/deno.git
synced 2025-01-22 06:09:25 -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),
|
_hook: extern "C" fn(*const c_void),
|
||||||
_data: *const c_void,
|
_data: *const c_void,
|
||||||
) -> Result {
|
) -> Result {
|
||||||
eprintln!("napi_add_env_cleanup_hook is currently not supported");
|
log::info!("napi_add_env_cleanup_hook is currently not supported");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ fn napi_remove_env_cleanup_hook(
|
||||||
_hook: extern "C" fn(*const c_void),
|
_hook: extern "C" fn(*const c_void),
|
||||||
_data: *const c_void,
|
_data: *const c_void,
|
||||||
) -> Result {
|
) -> Result {
|
||||||
eprintln!("napi_remove_env_cleanup_hook is currently not supported");
|
log::info!("napi_remove_env_cleanup_hook is currently not supported");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -737,7 +737,7 @@ fn napi_make_callback(
|
||||||
}
|
}
|
||||||
|
|
||||||
if !async_context.is_null() {
|
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);
|
let recv = transmute::<napi_value, v8::Local<v8::Value>>(recv);
|
||||||
|
@ -1006,7 +1006,7 @@ fn napi_add_finalizer(
|
||||||
_finalize_hint: *const c_void,
|
_finalize_hint: *const c_void,
|
||||||
_result: *mut napi_ref,
|
_result: *mut napi_ref,
|
||||||
) -> Result {
|
) -> Result {
|
||||||
eprintln!("napi_add_finalizer is not yet supported.");
|
log::info!("napi_add_finalizer is not yet supported.");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue