* destructuring private fields with array pattern / object pattern * wip: new test cases * destrucuring and rest for private properties * test case for loose private-loose * add transform-desturcturing for exec * update test case * remove getPrototypeOf imports from get and set * wip: destructure super assignment * throw "Destructuring to a super field is not supported yet." * fix tests and fix assignment pattern * remove CallExpression from AssignmentPattern
16 lines
444 B
JavaScript
16 lines
444 B
JavaScript
var Foo = function Foo(props) {
|
|
"use strict";
|
|
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
|
|
_client.set(this, {
|
|
writable: true,
|
|
value: void 0
|
|
});
|
|
|
|
babelHelpers.classPrivateFieldSet(this, _client, 1);
|
|
[this.x = babelHelpers.classPrivateFieldGet(this, _client), babelHelpers.classPrivateFieldDestructureSet(this, _client).value, this.y = babelHelpers.classPrivateFieldGet(this, _client)] = props;
|
|
};
|
|
|
|
var _client = new WeakMap();
|