Files
Huáng JùnliàngandNicolò Ribaudo d070e6a0d4 Parse destructuring private fields (#13931)
* feat: parse destructuring private

* add test cases

* fix: register private name on destructuring

* add typings

* add syntax plugin

* add generator test case

* add syntax plugin to preset-stage-2

* fix flow errors

* address review comments

* fix: use private name in toAssignable

* test: add case with undefined refExpressionErrors
2022-02-02 00:22:00 +01:00

7 lines
88 B
JavaScript

class C {
#x = 1;
m() {
const {x: { #x: [x] }, y: [...{ #x: y }]} = this;
}
}