diff --git a/src/async_wrap.cc b/src/async_wrap.cc index b84daeacd6d1b2..6a354c0aec898c 100644 --- a/src/async_wrap.cc +++ b/src/async_wrap.cc @@ -380,8 +380,7 @@ static void RegisterDestroyHook(const FunctionCallbackInfo& args) { p->env = Environment::GetCurrent(args); p->target.Reset(isolate, args[0].As()); p->propBag.Reset(isolate, args[2].As()); - p->target.SetWeak( - p, AsyncWrap::WeakCallback, WeakCallbackType::kParameter); + p->target.SetWeak(p, AsyncWrap::WeakCallback, WeakCallbackType::kParameter); }