Repository navigation
Commit e9c2808
committed
fixup! src: throw on a malformed localStorage file
Keys are stored as a blob of raw uint16_t memory, so their byte order is
the platform's, but the test fixture wrote them with Buffer's utf16le
encoding. On AIX and s390x the stored key therefore did not match the
one that localStorage.getItem() binds, so the row was not found, no
value was type-checked, and the child exited 0 instead of throwing.
Encode fixture keys in the platform's byte order.
Signed-off-by: Trevor Burnham <trevorburnham@gmail.com>
Assisted-by: Claude Opus 51 parent 4a1eb6f commit e9c2808
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | | - | |
197 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
| |||
0 commit comments