chore(lint): enforce buffer and cancellation regression guards

This commit is contained in:
morluto
2026-10-25 07:31:20 +08:00
parent f2fa951c00
commit 475f09d5ca
182 changed files with 1653 additions and 497 deletions
@@ -232,7 +232,7 @@ it.each(["thin", "universal"] as const)(
expect(linked.return_types).toEqual(
link(createIl2cppBinaryFixture()).return_types,
);
expect(bytes).toEqual(original);
expect(Buffer.compare(bytes, original)).toBe(0);
},
);
@@ -387,7 +387,7 @@ it("reads a PE pointer array across file bytes and the declared zero-fill tail",
const bytes = createSplitPointerPeFixture();
const original = Buffer.from(bytes);
expect(link(bytes).method_addresses).toEqual(expectedAddresses);
expect(bytes).toEqual(original);
expect(Buffer.compare(bytes, original)).toBe(0);
expect(failure(createSplitPointerPeFixture(false)).reason).toBe(
"code-gen-modules-not-found",
);