mirror of
https://github.com/morluto/rea.git
synced 2026-11-15 03:02:56 +00:00
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:
1 parent
4b26f38d6f
commit
cdc4541ef7
369 files changed
+3847
-3662
No files matched your search
@@ -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);
|
||||
Reference in new issue
Block a user