Commit 1047e9e
test(reader): drop redundant Math.max alloc guards in TestArrays
allocate(0, n) is legal and tested (empty bytes/bools cases), so the
Math.max(1, ...) floors were dead code that made bytes()/bools() diverge
from the other builders. Remove for consistency.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0acaf5b commit 1047e9e
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments