You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ffa500a
Browse filesBrowse the repository at this point in the historyBrowse files
answer the 2414 rows on the view-state host double
Threads 4575030437 and 4575030442 asked the same thing of two different members of
makeViewHost: the double answered for production instead of running it.
- getPersistedViewStates, prunePersistedViewStates and isViewStateGenerationLive are
bound to the prototype now, the way postViewStateClaimToWebview and
enqueueViewStateWrite already were. Only storage and the message transport stay
mocked, as the thread asked.
- The restore-failure case stores the key and value production actually sent instead
of installing a fixed record, so a wrong re-key payload cannot pass it.
- The rollback case is split. While the entry still carries the minted token the
rollback is the second write and restores what the key held before. With the later
binding installed before the rollback's fresh read, the ownership check refuses:
no rollback write happens at all, the later entry survives unchanged, and the claim
this view minted is reported as dropped. The own-token case stays separate.
- One more row pins the read itself: a member of the stored map that is not an object
is gone before the write is composed, because the read is production's.
What each answer proves, and what the run would have failed on beforehand:
- generation predicate without its equality: kills 3 rows here, 0 at this head - the
double supplied its own predicate, so the answered tests could not see the change.
- rollback ownership check removed: kills 1 row here, 0 at this head.
- read without its entry-shape filter: kills 1 row here, 0 at this head.
- prunePersistedViewStates without its updatedAt ordering: killed by neither, because
every fixture here holds one or two entries against a cap of 50. Named, not papered
over.
Run from the src package on a real pnpm install --frozen-lockfile: 362 passed (362)
(361 before), src tsc --noEmit clean, prettier 3.9.10 check clean, eslint with the
shared prune switch left off clean, and src/eslint-suppressions.json byte identical
to its head blob ae3d504. No changeset, no changelog.
0 commit comments