We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94fe34b commit 5d1e17cCopy full SHA for 5d1e17c
src/cdp/domains/dom.zig
@@ -277,15 +277,12 @@ fn resolveNode(cmd: anytype) !void {
277
var js_context = page.main_context;
278
if (params.executionContextId) |context_id| {
279
if (js_context.v8_context.debugContextId() != context_id) {
280
- var found = false;
281
for (bc.isolated_worlds.items) |*isolated_world| {
282
js_context = &(isolated_world.executor.js_context orelse return error.ContextNotFound);
283
if (js_context.v8_context.debugContextId() == context_id) {
284
- found = true;
285
break;
286
}
287
- }
288
- if (!found) return error.ContextNotFound;
+ } else return error.ContextNotFound;
289
290
291
0 commit comments