diff options
Diffstat (limited to 'src/api/hooks.cc')
-rw-r--r-- | src/api/hooks.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/api/hooks.cc b/src/api/hooks.cc index 3b1ee90a99..cec58cee00 100644 --- a/src/api/hooks.cc +++ b/src/api/hooks.cc @@ -130,8 +130,11 @@ async_context EmitAsyncInit(Isolate* isolate, } void EmitAsyncDestroy(Isolate* isolate, async_context asyncContext) { - AsyncWrap::EmitDestroy( - Environment::GetCurrent(isolate), asyncContext.async_id); + EmitAsyncDestroy(Environment::GetCurrent(isolate), asyncContext); +} + +void EmitAsyncDestroy(Environment* env, async_context asyncContext) { + AsyncWrap::EmitDestroy(env, asyncContext.async_id); } } // namespace node |