Skip to content

Commit b725e41

Browse files
committed
fixup! src: always use strong reference to napi_async_context resource
1 parent 85eef92 commit b725e41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node_api.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,9 @@ class AsyncContext {
603603
}
604604

605605
explicit HeapAllocatedCallbackScope(AsyncContext* async_context)
606-
cs_(async_context->node_env(),
607-
&async_context->resource_storage_,
608-
async_context->async_context()) {}
606+
: cs_(async_context->node_env(),
607+
&async_context->resource_storage_,
608+
async_context->async_context()) {}
609609

610610
private:
611611
node::CallbackScope cs_;

0 commit comments

Comments
 (0)