Commit fdfe978
Disallow reinitializing private elements (#13601)
Co-authored-by: Nicolò Ribaudo <[email protected]>
Co-authored-by: Justin Ridgewell <[email protected]>1 parent cb3ebde commit fdfe978
92 files changed
Lines changed: 451 additions & 229 deletions
File tree
- packages
- babel-helper-create-class-features-plugin
- src
- test/fixtures
- field-reinitialization
- private-accessor
- private-field
- private-method
- plugin-proposal-private-methods/loose-false
- replace-supers/method
- babel-helpers/src
- babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining/test/fixtures/basic
- class-private-integration-optional-chaining
- class-private-integration
- babel-plugin-proposal-async-generator-functions/test/fixtures/async-generators/class-private-method
- babel-plugin-proposal-class-properties/test/fixtures
- private
- 1-helpermemberexpressionfunction
- assignment
- call
- canonical
- constructor-collision
- declaration-order
- derived-multiple-supers
- derived
- destructuring-array-pattern-1
- destructuring-array-pattern-2
- destructuring-array-pattern-3
- destructuring-array-pattern
- destructuring-object-pattern-1
- destructuring-object-pattern-2
- destructuring-object-pattern-3
- destructuring-object-pattern
- extracted-this
- foobar
- instance-undefined
- instance
- logical-assignment
- multiple
- native-classes
- nested-class-computed-redeclared
- nested-class-computed
- nested-class-extends-computed-redeclared
- nested-class-extends-computed
- nested-class-other-redeclared
- nested-class-redeclared
- nested-class
- optional-chain-member-optional-call-spread-arguments
- private-in-derived
- reevaluated
- reference-in-other-property
- regression-T7364
- super-call
- super-expression
- super-statement
- tagged-template
- update
- regression/8882
- babel-plugin-proposal-private-methods/test/fixtures
- accessors
- basic
- get-only-setter
- reassignment
- set-only-getter
- tagged-template
- updates
- assumption-constantSuper/private-method-super
- duplicated-names
- get-set
- set-get
- private-method
- assignment
- async
- before-fields
- class-expression
- context
- exfiltrated
- generator
- read-only
- reassignment
- super
- tagged-template
- babel-plugin-proposal-private-property-in-object/test/fixtures
- private-loose/native-classes
- private
- accessor
- field
- method
- native-classes
- nested-class-other-redeclared
- nested-class-redeclared
- nested-class
- babel-preset-env/test/fixtures
- loose-class-features-precedence
- preset-not-loose-no-plugins
- properties-and-methods-not-loose-preset-loose
- properties-not-loose-preset-loose
- shipped-proposals/new-class-features-firefox-70
- babel-runtime-corejs2
- babel-runtime-corejs3
- babel-runtime
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 90 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
553 | 568 | | |
554 | 569 | | |
555 | 570 | | |
| |||
632 | 647 | | |
633 | 648 | | |
634 | 649 | | |
| 650 | + | |
635 | 651 | | |
636 | 652 | | |
637 | | - | |
| 653 | + | |
638 | 654 | | |
639 | 655 | | |
640 | 656 | | |
641 | 657 | | |
642 | 658 | | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
647 | 666 | | |
648 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
649 | 692 | | |
650 | 693 | | |
651 | 694 | | |
652 | 695 | | |
653 | 696 | | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
654 | 724 | | |
655 | | - | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
656 | 731 | | |
657 | 732 | | |
658 | 733 | | |
| |||
957 | 1032 | | |
958 | 1033 | | |
959 | 1034 | | |
| 1035 | + | |
960 | 1036 | | |
961 | 1037 | | |
962 | 1038 | | |
| |||
985 | 1061 | | |
986 | 1062 | | |
987 | 1063 | | |
| 1064 | + | |
988 | 1065 | | |
989 | 1066 | | |
990 | 1067 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments