| 96 | } |
| 97 | |
| 98 | Value MakeAsyncCallbackWithInitList(const Napi::CallbackInfo& info) { |
| 99 | Napi::FunctionReference ref; |
| 100 | ref.Reset(info[0].As<Function>()); |
| 101 | |
| 102 | Napi::AsyncContext context(info.Env(), "func_ref_resources", {}); |
| 103 | |
| 104 | return MaybeUnwrap( |
| 105 | ref.MakeCallback(Napi::Object::New(info.Env()), {}, context)); |
| 106 | } |
| 107 | |
| 108 | Value MakeAsyncCallbackWithVector(const Napi::CallbackInfo& info) { |
| 109 | Napi::FunctionReference ref; |
nothing calls this directly
no test coverage detected