various small api fixes/tweaks

This commit is contained in:
Karl Seguin
2025-11-24 20:12:43 +08:00
parent 871fd46c89
commit e336c67857
17 changed files with 327 additions and 131 deletions

View File

@@ -88,8 +88,8 @@ pub fn LogInterceptor(comptime BC: type) type {
self.bc.cdp.sendEvent("Log.entryAdded", .{
.entry = .{
.source = switch (scope) {
.js, .user_script, .console, .web_api, .script_event => "javascript",
.http, .fetch, .xhr => "network",
.js, .console => "javascript",
.http => "network",
.telemetry, .unknown_prop, .interceptor => unreachable, // filtered out in writer above
else => "other",
},