aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/async-hooks-wrapper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/async-hooks-wrapper.cc')
-rw-r--r--deps/v8/src/async-hooks-wrapper.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/src/async-hooks-wrapper.cc b/deps/v8/src/async-hooks-wrapper.cc
index fd724af9c9..bff7965171 100644
--- a/deps/v8/src/async-hooks-wrapper.cc
+++ b/deps/v8/src/async-hooks-wrapper.cc
@@ -142,8 +142,13 @@ void AsyncHooks::ShellPromiseHook(PromiseHookType type, Local<Promise> promise,
Local<Integer> async_id =
Integer::New(hooks->isolate_, hooks->current_async_id);
+ CHECK(!promise
+ ->HasPrivate(currentContext,
+ hooks->async_id_smb.Get(hooks->isolate_))
+ .ToChecked());
promise->SetPrivate(currentContext,
hooks->async_id_smb.Get(hooks->isolate_), async_id);
+
if (parent->IsPromise()) {
Local<Promise> parent_promise = parent.As<Promise>();
Local<Value> parent_async_id =