| 106 | } |
| 107 | |
| 108 | Value MakeAsyncCallbackWithVector(const Napi::CallbackInfo& info) { |
| 109 | Napi::FunctionReference ref; |
| 110 | ref.Reset(info[0].As<Function>()); |
| 111 | std::vector<napi_value> newVec; |
| 112 | Napi::AsyncContext context(info.Env(), "func_ref_resources", {}); |
| 113 | |
| 114 | for (int i = 1; i < (int)info.Length(); i++) { |
| 115 | newVec.push_back(info[i]); |
| 116 | } |
| 117 | |
| 118 | return MaybeUnwrap( |
| 119 | ref.MakeCallback(Napi::Object::New(info.Env()), newVec, context)); |
| 120 | } |
| 121 | |
| 122 | Value MakeAsyncCallbackWithArgv(const Napi::CallbackInfo& info) { |
| 123 | Napi::FunctionReference ref; |
nothing calls this directly
no test coverage detected