fix(native): distinguish symbol definitions from metadata

This commit is contained in:
morluto
2026-10-10 05:13:53 +08:00
parent 890bb66b35
commit 70bad53847
6 changed files with 81 additions and 9 deletions
+3 -1
View File
@@ -143,7 +143,7 @@ describe("function comparison normalized identity", () => {
},
);
it.each(["sub_deadbeef", "fcn.00401000"])(
it.each(["sub_deadbeef", "fcn.00401000", "FUN_00401000", "FUN_deadBEEF"])(
"keeps %s as an address-derived name",
(name) => {
const generated = (base: "0x1000" | "0x2000") =>
@@ -169,6 +169,8 @@ describe("function comparison normalized identity", () => {
it.each([
{ name: "sub_deallocate", status: "unchanged" },
{ name: "sub_deadbeef", status: "unknown" },
{ name: "FUN_00401000", status: "unknown" },
{ name: "FUN_initialize", status: "unchanged" },
])("preserves the calls dimension for callee $name", ({ name, status }) => {
const calling = (base: "0x1000" | "0x2000") =>
functionDossierSchema.parse({