fix(browser): reject overlapping indexed source maps

Fixes #6562
This commit is contained in:
morluto committed 2026-10-23 18:07:46 +08:00
1 parent 553262443a
commit ba7c3dafab
8 files changed
+151 -23

No files matched your search

@@ -50,7 +50,11 @@ const execute = async (): Promise<string> => {
throw cause;
return JSON.stringify({
state: "failure",
reason: cause instanceof SourceMapFormatFailure ? cause.reason : "format",
reason:
cause instanceof SourceMapFormatFailure &&
cause.reason !== "section-overlap"
? cause.reason
: "format",
message: cause.message,
});
}