3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 15:15:44 +01:00

Answer CodeRabbit's review: 0 🔴, 1 🟡; only a catchable out-of-memory throw is engine-limit, and isolation from heap exhaustion takes a separate process, not a worker

This commit is contained in:
2026-10-13 19:59:15 +02:00
committed by Lillem4n
parent 667360f6e6
commit eff957fbbe
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -10,8 +10,8 @@
- **Breaking:** the markdown readers refuse a value that is not a string with the new code
`not-a-string`; `MIGRATION.md` lists what each value did before.
- **Breaking:** every call returns the new code `engine-limit` where a conversion passes the
JavaScript engine's longest array, `Map` or `Set`, or runs it out of memory, and, on
JavaScriptCore, its longest string. A retry may succeed. Every other refusal stays deterministic.
JavaScript engine's longest array, `Map` or `Set`, or meets an out-of-memory throw the call can
catch, and, on JavaScriptCore, its longest string. A retry may succeed. Every other refusal stays deterministic.
- **Breaking:** an attribute value that is not a plain object, array or JSON primitive, such as a
`Date`, `Map`, typed array or class instance, makes `isAdfDocument` return `false` and the
converters refuse it as `not-an-adf-document`. Before, the converters wrote it as `{}` or its own