mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-22 07:28:14 +00:00
Multi-review follow-ups for #7815: - Tighten serializeContextDoc determinism test: previously asserted equality between a doc and its `{...doc}` spread, which preserves V8 insertion order — the test would pass even against a future encoder that randomised iteration over Map-backed nodes (the real failure mode for the byte-compare). Now asserts repeated-call determinism on the same input directly, plus type+non-empty shape so a future return- type change (e.g. Uint8Array) breaks here, not in the editor. - Document the sync/async stamp asymmetry in flushSaveSync: it stamps lastSeenDocBytes BEFORE the void dispatch, whereas flushSave stamps AFTER `await`. Both are correct (the sync path is fire-and-forget and the iframe can be torn down mid-call, so a post-dispatch stamp would silently drop on teardown) but the divergence wasn't called out in the inline comments. |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||