refactor: remove redundant seams and preserve cleanup ownership (#10375)

* refactor: remove redundant seams and preserve cleanup ownership

* fix: validate PE resource extents before budget checks
This commit is contained in:
morluto authored and GitHub committed 2026-11-13 10:11:06 -05:00
1 parent 4b26f38d6f
commit cdc4541ef7
369 files changed
+3847 -3662

No files matched your search

+3 -3
View File
@@ -18,9 +18,9 @@ export const compareUnicodeCodePoints = (
};
/**
* Collision-free composite key for deduplication/sorting. `\0`-joins
* collide when any component contains NUL (valid in JS property names);
* a JSON tuple escapes every component. Single owner for composite keys.
* JSON tuple key for deduplication/sorting. Unlike `\0`-joins, it preserves
* boundaries when string components contain NUL. Callers must account for JSON
* serialization semantics, such as undefined array elements becoming null.
*/
export const compositeKey = (parts: readonly unknown[]): string =>
JSON.stringify(parts);