mirror of
https://github.com/pvrzz/Portage.git
synced 2026-11-29 05:22:26 +00:00
4f630de25f
- Treat an existing destination database with no object stores (when the source has stores) as an interrupted upgrade: delete and retry instead of skipping it forever. Verified by killing Chrome mid-restore; the next run restored all 49,990 synthetic records. - Keep snapshot error indices aligned with the actual database index. - Look up Error constructors through a Map: a site-controlled Error.name of "constructor"/"__proto__"/"toString" could corrupt the value or abort the DB. - Brand-check Number/String/Boolean wrappers instead of toString sniffing so Symbol.toStringTag cannot change a plain object's type; accept ordinary class instances as plain objects (prototype dropped, matching structured clone) while still rejecting platform-object tags. - Preserve AggregateError.errors and ImageData.colorSpace. - Document the empty-container retry, the 120 s per-origin timeout and the additional clone types.