fix(session): reject sparse provenance arrays

This commit is contained in:
Hypatia May
2026-07-16 11:08:59 +08:00
parent 8184332918
commit a6c8775f12
3 changed files with 46 additions and 37 deletions
@@ -358,6 +358,9 @@ describe('session event tracing', () => {
['empty sources', [
appendEvent(0, []),
]],
['sparse sources', [
appendEvent(0, Array<number>(1)),
]],
['duplicate sources', [
appendEvent(0),
appendEvent(1, [0, 0]),