Repository navigation
Commit 7621a52
fix(javascript): read past a class setter with no parameter
parseProgram reads past "setter should have exactly one param", and the
rest-parameter check after it then read the missing first parameter and
threw a TypeError. It now runs only when there is one parameter, as the
object-literal setter already did.
The acorn parity test lets ours read on where acorn crashes after an
error it noted, so long as ours notes the same errors first.
Claude-Session: https://claude.ai/code/session_015gdnghKbLJ7VvJ5nNCNHhH1 parent 2305a7c commit 7621a52
2 files changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3245 | 3245 | | |
3246 | 3246 | | |
3247 | 3247 | | |
3248 | | - | |
3249 | | - | |
| 3248 | + | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
3250 | 3252 | | |
3251 | 3253 | | |
3252 | 3254 | | |
| |||
17727 | 17729 | | |
17728 | 17730 | | |
17729 | 17731 | | |
17730 | | - | |
17731 | | - | |
| 17732 | + | |
17732 | 17733 | | |
17733 | 17734 | | |
17734 | 17735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4619 | 4619 | | |
4620 | 4620 | | |
4621 | 4621 | | |
| 4622 | + | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
4622 | 4635 | | |
4623 | 4636 | | |
4624 | 4637 | | |
| |||
5796 | 5809 | | |
5797 | 5810 | | |
5798 | 5811 | | |
5799 | | - | |
| 5812 | + | |
| 5813 | + | |
5800 | 5814 | | |
5801 | 5815 | | |
5802 | 5816 | | |
| |||
0 commit comments