fix(inspector): preserve script identity and parse-failure facts

Fixes #6535

Fixes #6546
This commit is contained in:
morluto committed 2026-10-23 16:49:31 +08:00
1 parent 6bb4f4bf7d
commit 56685c6ec6
11 files changed
+223 -10

No files matched your search

@@ -173,6 +173,9 @@ const scriptEntities = (
location_reason: script.unresolved_location.reason,
}
: { location: location.value }),
...("reported_url" in script && script.reported_url !== undefined
? { reported_url: script.reported_url }
: {}),
cdp_hash: script.cdp_hash,
length: script.length,
is_module: script.is_module,