| 13 | } |
| 14 | |
| 15 | static void MakeCallbackNoResource(const CallbackInfo& info) { |
| 16 | Function callback = info[0].As<Function>(); |
| 17 | AsyncContext context(info.Env(), "async_context_no_res_test"); |
| 18 | callback.MakeCallback( |
| 19 | Object::New(info.Env()), std::initializer_list<napi_value>{}, context); |
| 20 | } |
| 21 | |
| 22 | static Boolean AssertAsyncContextReturnCorrectEnv(const CallbackInfo& info) { |
| 23 | AsyncContext context(info.Env(), "empty_context_test"); |
nothing calls this directly
no test coverage detected