Repository navigation
Commit 156b207
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 360a47d commit 156b207
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23825 | 23825 | | |
23826 | 23826 | | |
23827 | 23827 | | |
| 23828 | + | |
| 23829 | + | |
| 23830 | + | |
| 23831 | + | |
| 23832 | + | |
| 23833 | + | |
| 23834 | + | |
| 23835 | + | |
| 23836 | + | |
| 23837 | + | |
| 23838 | + | |
| 23839 | + | |
| 23840 | + | |
| 23841 | + | |
23828 | 23842 | | |
23829 | 23843 | | |
23830 | 23844 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6353 | 6353 | | |
6354 | 6354 | | |
6355 | 6355 | | |
| 6356 | + | |
| 6357 | + | |
| 6358 | + | |
| 6359 | + | |
| 6360 | + | |
| 6361 | + | |
| 6362 | + | |
| 6363 | + | |
| 6364 | + | |
6356 | 6365 | | |
6357 | 6366 | | |
6358 | 6367 | | |
| |||
0 commit comments