refactor(il2cpp): report format failures through ParseFailure (#10701)

This commit is contained in:
morluto authored and GitHub committed 2026-11-14 21:11:29 -05:00
1 parent cd5ea9a9fb
commit 3a29b6b8ea
12 files changed
+150 -42

No files matched your search

+2
View File
@@ -106,6 +106,7 @@ const createTypeRenderer = (
throw new Il2cppBinaryFormatFailure(
"native-type-text-capacity",
`rendered type text workspace exceeds ${TYPE_TEXT_BYTES} UTF-8 bytes`,
TYPE_TEXT_BYTES,
);
beforeText?.(bytes);
};
@@ -131,6 +132,7 @@ const createTypeRenderer = (
throw new Il2cppBinaryFormatFailure(
"type-nesting-capacity",
`type rendering exceeds ${TYPE_DEPTH} nested frames`,
TYPE_DEPTH,
);
active.add(address);
try {