diff --git a/src/api/api.cc b/src/api/api.cc index 4e7f21f88753..f71b1101e227 100644 --- a/src/api/api.cc +++ b/src/api/api.cc @@ -11091,6 +11091,10 @@ extern "C" void V8RecordReplayGetDefaultContext(v8::Isolate* isolate, v8::Local< *cx = gDefaultContext->Get(isolate); } +extern "C" int V8RecordReplayGetContextId(v8::Local cx) { + return v8::debug::GetContextId(cx); +} + bool RecordReplayHasDefaultContext() { return !!gDefaultContext; }