mirror of
https://github.com/morluto/rea.git
synced 2026-11-15 19:23:24 +00:00
refactor(il2cpp): report format failures through ParseFailure (#10701)
This commit is contained in:
1 parent
cd5ea9a9fb
commit
3a29b6b8ea
12 files changed
+150
-42
No files matched your search
@@ -83,7 +83,7 @@ const failureForPrimary = (
|
||||
const { cause, origin } = facts;
|
||||
if (origin === "owned-or-classified" && cause instanceof AnalysisError)
|
||||
return cause;
|
||||
if (cause instanceof Il2cppBinaryFormatFailure && cause.kind === "capacity")
|
||||
if (cause instanceof Il2cppBinaryFormatFailure && cause.kind === "limit")
|
||||
return new AnalysisResourceConstraintError(
|
||||
OPERATION,
|
||||
cause.reason === "native-type-text-capacity" ? "memory" : "capacity",
|
||||
|
||||
Reference in new issue
Block a user