diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-05-24 15:41:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 15:41:43 +0200 |
commit | e56695daa89b7c53a88a691f35ee9a498caffbdf (patch) | |
tree | 4d02b4422e50ec0bc0ec5b733923f64206d4abba /test_napi/src/lib.rs | |
parent | 0bb5bbc7a0ff7565a4c7fa4ebc8c69e02f76e6b5 (diff) |
fix(napi): add napi_async_init and napi_async_destroy (#19234)
We don't have support for "AsyncContext" in "node:async_hooks"
module, so these two APIs are just noops.
Towards https://github.com/denoland/deno/issues/18610.
Diffstat (limited to 'test_napi/src/lib.rs')
-rw-r--r-- | test_napi/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test_napi/src/lib.rs b/test_napi/src/lib.rs index 8fa7d9ef6..9342656fd 100644 --- a/test_napi/src/lib.rs +++ b/test_napi/src/lib.rs @@ -16,6 +16,7 @@ pub mod date; pub mod env; pub mod error; pub mod finalizer; +pub mod make_callback; pub mod mem; pub mod numbers; pub mod object_wrap; @@ -162,6 +163,7 @@ unsafe extern "C" fn napi_register_module_v1( mem::init(env, exports); bigint::init(env, exports); symbol::init(env, exports); + make_callback::init(env, exports); init_cleanup_hook(env, exports); |