Repository navigation
Commit ef743e0
test(contracts): pin that sparse arrays count as holes
Effect's array parser already turns a sparse array's missing index into
`undefined`, so `Schema.is` and `make` rejected `new Array(1)` before this.
The hole check now walks every index itself instead of relying on that, and
a test pins sparse arrays alongside explicit `undefined`.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 58a4224 commit ef743e0
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
149 | 155 | | |
150 | 156 | | |
151 | 157 | | |
| |||
0 commit comments