Repository navigation
Commit 4db5d96
committed
fix(javascript): parenthesize a yield, await, private in or chain tag
terser's list of tags it parenthesizes misses these four, so `(yield o)`t``, `(await o)`t``, `(#x in o)`t`` and `(a?.b)`t`` printed bare and read the template as part of the operand or stopped parsing. Adds a for-await-of `let` case.1 parent 76156f0 commit 4db5d96
3 files changed
Lines changed: 61 additions & 18 deletions
File tree
- .changeset
- lib/javascript
- test/unitCases
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14607 | 14607 | | |
14608 | 14608 | | |
14609 | 14609 | | |
| 14610 | + | |
14610 | 14611 | | |
14611 | 14612 | | |
14612 | 14613 | | |
| |||
14652 | 14653 | | |
14653 | 14654 | | |
14654 | 14655 | | |
| 14656 | + | |
| 14657 | + | |
| 14658 | + | |
| 14659 | + | |
| 14660 | + | |
| 14661 | + | |
| 14662 | + | |
| 14663 | + | |
| 14664 | + | |
| 14665 | + | |
| 14666 | + | |
| 14667 | + | |
| 14668 | + | |
| 14669 | + | |
| 14670 | + | |
| 14671 | + | |
| 14672 | + | |
| 14673 | + | |
| 14674 | + | |
| 14675 | + | |
| 14676 | + | |
| 14677 | + | |
| 14678 | + | |
14655 | 14679 | | |
14656 | | - | |
14657 | 14680 | | |
14658 | 14681 | | |
14659 | 14682 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
601 | 617 | | |
602 | 618 | | |
603 | 619 | | |
| |||
620 | 636 | | |
621 | 637 | | |
622 | 638 | | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
639 | 659 | | |
640 | 660 | | |
641 | 661 | | |
| |||
0 commit comments