Repository navigation
Commit d99fce6
committed
fix(javascript): keep isPure's verdicts while it shares the side-effects rules
The shared rules found more expressions pure than `isPure` did, which
grew bundles: a pure binary expression with an import cost a kept
`#__PURE__` comment, and one bailed module concatenation. `isPure` now
leaves conversions, member reads and derived classes with a constructor
to the evaluator as before, so `1n / 0n` stays impure too.
Claude-Session: https://claude.ai/code/session_01Tgxgyb4N35ndP6cC4KcrXC1 parent 8884e29 commit d99fce6
10 files changed
Lines changed: 99 additions & 186 deletions
File tree
- .changeset
- lib/javascript
- test
- external
- unitCases/javascript
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
222 | 290 | | |
223 | 291 | | |
224 | 292 | | |
| |||
6574 | 6642 | | |
6575 | 6643 | | |
6576 | 6644 | | |
6577 | | - | |
| 6645 | + | |
6578 | 6646 | | |
6579 | 6647 | | |
6580 | 6648 | | |
| |||
6594 | 6662 | | |
6595 | 6663 | | |
6596 | 6664 | | |
6597 | | - | |
6598 | | - | |
6599 | | - | |
6600 | | - | |
6601 | | - | |
6602 | | - | |
| 6665 | + | |
| 6666 | + | |
| 6667 | + | |
| 6668 | + | |
| 6669 | + | |
| 6670 | + | |
| 6671 | + | |
| 6672 | + | |
6603 | 6673 | | |
6604 | 6674 | | |
6605 | 6675 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
480 | 479 | | |
481 | 480 | | |
482 | 481 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | 482 | | |
487 | 483 | | |
488 | 484 | | |
| |||
495 | 491 | | |
496 | 492 | | |
497 | 493 | | |
498 | | - | |
| 494 | + | |
499 | 495 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
| 496 | + | |
507 | 497 | | |
508 | 498 | | |
509 | 499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20786 | 20786 | | |
20787 | 20787 | | |
20788 | 20788 | | |
| 20789 | + | |
| 20790 | + | |
| 20791 | + | |
20789 | 20792 | | |
20790 | 20793 | | |
20791 | 20794 | | |
| |||
20800 | 20803 | | |
20801 | 20804 | | |
20802 | 20805 | | |
| 20806 | + | |
| 20807 | + | |
| 20808 | + | |
20803 | 20809 | | |
| 20810 | + | |
20804 | 20811 | | |
20805 | 20812 | | |
20806 | 20813 | | |
| |||
20818 | 20825 | | |
20819 | 20826 | | |
20820 | 20827 | | |
20821 | | - | |
| 20828 | + | |
| 20829 | + | |
20822 | 20830 | | |
20823 | 20831 | | |
20824 | 20832 | | |
| |||
20835 | 20843 | | |
20836 | 20844 | | |
20837 | 20845 | | |
20838 | | - | |
20839 | | - | |
20840 | | - | |
20841 | | - | |
| 20846 | + | |
20842 | 20847 | | |
20843 | 20848 | | |
20844 | 20849 | | |
20845 | 20850 | | |
20846 | 20851 | | |
20847 | 20852 | | |
20848 | 20853 | | |
20849 | | - | |
| 20854 | + | |
| 20855 | + | |
| 20856 | + | |
20850 | 20857 | | |
20851 | 20858 | | |
20852 | 20859 | | |
| |||
This file was deleted.
This file was deleted.
Submodule oxc updated 1968 files
Submodule swc updated 1134 files
This file was deleted.
0 commit comments