* fix: support static private field destructure set ([C.#p] = [0]) * 🚧 * fix: add compatibility warning for older @babel/helper versions * refactor: extract common routines among classPrivateFiled helpers * More 🚧
10 lines
214 B
JavaScript
10 lines
214 B
JavaScript
class A {
|
|
run() {
|
|
babelHelpers.classStaticPrivateMethodSet(A, A, _method, 2);
|
|
[babelHelpers.classStaticPrivateFieldDestructureSet(A, A, _method).value] = [2];
|
|
}
|
|
|
|
}
|
|
|
|
var _method = function _method() {};
|