refactor(errors): finish local-limit-error-class and range-error-interpretation guards (#11784)

This commit is contained in:
morluto authored and GitHub committed 2026-11-16 20:55:14 -05:00
1 parent 62f5946ba1
commit 08b63cc8a1
21 files changed
+208 -103

No files matched your search

+3 -1
View File
@@ -13,6 +13,7 @@ import {
AnalysisInputError,
AnalysisResourceConstraintError,
} from "../domain/analysisErrorCore.js";
import { hostRangeErrorKind } from "../domain/parseFailure.js";
import { err, ok, type Result } from "../domain/result.js";
import { sliceTextByTokenWindow } from "./tokenWindow.js";
import {
@@ -119,7 +120,8 @@ export const createCliResultOutput = (
if (
completed === undefined ||
handled ||
!(cause instanceof RangeError) ||
hostRangeErrorKind(cause) !== "host-capacity" ||
!(cause instanceof Error) ||
cause.message !== "Invalid string length"
)
return false;