aboutsummaryrefslogtreecommitdiff
path: root/src/async_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r--src/async_wrap.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc
index 239e607b05..b6776364a5 100644
--- a/src/async_wrap.cc
+++ b/src/async_wrap.cc
@@ -312,8 +312,7 @@ static void PromiseHook(PromiseHookType type, Local<Promise> promise,
parent_wrap = PromiseWrap::New(env, parent_promise, nullptr, true);
}
- AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(
- env, parent_wrap->get_async_id());
+ AsyncHooks::DefaultTriggerAsyncIdScope trigger_scope(parent_wrap);
wrap = PromiseWrap::New(env, promise, parent_wrap, silent);
} else {
wrap = PromiseWrap::New(env, promise, nullptr, silent);