Repository navigation
Commit 23be70e
committed
fix(javascript): still read a hole of an evaluated array as undefined
Keeping holes for `indexOf` stopped `[1, , 3][1]` folding to `void 0`
under `unsafe`, which terser's `evaluate/unsafe_array` case measures
against swc. A read of a hole now evaluates to `undefined` again.
Claude-Session: https://claude.ai/code/session_011CuRTB8fAv8PE7di49qDL41 parent 0c167b5 commit 23be70e
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24326 | 24326 | | |
24327 | 24327 | | |
24328 | 24328 | | |
| 24329 | + | |
| 24330 | + | |
| 24331 | + | |
| 24332 | + | |
| 24333 | + | |
| 24334 | + | |
| 24335 | + | |
| 24336 | + | |
| 24337 | + | |
| 24338 | + | |
| 24339 | + | |
| 24340 | + | |
| 24341 | + | |
| 24342 | + | |
24329 | 24343 | | |
24330 | 24344 | | |
24331 | 24345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6550 | 6550 | | |
6551 | 6551 | | |
6552 | 6552 | | |
| 6553 | + | |
| 6554 | + | |
| 6555 | + | |
| 6556 | + | |
| 6557 | + | |
| 6558 | + | |
| 6559 | + | |
| 6560 | + | |
| 6561 | + | |
6553 | 6562 | | |
6554 | 6563 | | |
6555 | 6564 | | |
| |||
0 commit comments