Skip to content

Commit 1a2f749

Browse files
Eugene OstroukhovMylesBorins
Eugene Ostroukhov
authored andcommitted
deps: fix inspector v8 test
This fixes the inspector tests failing after the cherry-pick. V8 commit: https://chromium.googlesource.com/v8/v8/+/f19b889be801bdebc04c49090e37c787f7ba8805 PR-URL: #14827 Fixes: #14824 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 3d62139 commit 1a2f749

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

deps/v8/test/inspector/isolate-data.cc

+7
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,10 @@ v8::MaybeLocal<v8::Module> IsolateData::ModuleResolveCallback(
9393
IsolateData* data = IsolateData::FromContext(context);
9494
return data->modules_[ToVector(specifier)].Get(data->isolate_);
9595
}
96+
97+
void IsolateData::FreeContext(v8::Local<v8::Context> context) {
98+
int context_group_id = GetContextGroupId(context);
99+
auto it = contexts_.find(context_group_id);
100+
if (it == contexts_.end()) return;
101+
contexts_.erase(it);
102+
}

deps/v8/test/inspector/isolate-data.h

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class IsolateData {
3939
void RegisterModule(v8::Local<v8::Context> context,
4040
v8::internal::Vector<uint16_t> name,
4141
v8::ScriptCompiler::Source* source);
42+
void FreeContext(v8::Local<v8::Context> context);
4243

4344
private:
4445
struct VectorCompare {

0 commit comments

Comments
 (0)