Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed May 26, 2019
1 parent 7673658 commit 29b6f54
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
@@ -1,5 +1,3 @@
function _classPrivateFieldDestructureSet(receiver, privateMap) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to set private field on non-instance"); } var descriptor = privateMap.get(receiver); if (descriptor.set) { if (!("__destrObj" in descriptor)) { descriptor.__destrObj = { set value(v) { descriptor.set.call(receiver, v); } }; } return descriptor.__destrObj; } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } return descriptor; } }

var Foo = function Foo(props) {
"use strict";

Expand All @@ -12,7 +10,7 @@ var Foo = function Foo(props) {

babelHelpers.classPrivateFieldSet(this, _client, 1);
;
[this.x = babelHelpers.classPrivateFieldGet(this, _client), _classPrivateFieldDestructureSet(this, _client).value, this.y = babelHelpers.classPrivateFieldGet(this, _client)] = props;
[this.x = babelHelpers.classPrivateFieldGet(this, _client), babelHelpers.classPrivateFieldDestructureSet(this, _client).value, this.y = babelHelpers.classPrivateFieldGet(this, _client)] = props;
};

var _client = new WeakMap();
@@ -1,5 +1,3 @@
function _classPrivateFieldDestructureSet(receiver, privateMap) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to set private field on non-instance"); } var descriptor = privateMap.get(receiver); if (descriptor.set) { if (!("__destrObj" in descriptor)) { descriptor.__destrObj = { set value(v) { descriptor.set.call(receiver, v); } }; } return descriptor.__destrObj; } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } return descriptor; } }

var Foo = function Foo(props) {
"use strict";

Expand All @@ -11,7 +9,7 @@ var Foo = function Foo(props) {
});

;
[x, ..._classPrivateFieldDestructureSet(this, _client).value] = props;
[x, ...babelHelpers.classPrivateFieldDestructureSet(this, _client).value] = props;
};

var _client = new WeakMap();
@@ -1,5 +1,3 @@
function _classPrivateFieldDestructureSet(receiver, privateMap) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to set private field on non-instance"); } var descriptor = privateMap.get(receiver); if (descriptor.set) { if (!("__destrObj" in descriptor)) { descriptor.__destrObj = { set value(v) { descriptor.set.call(receiver, v); } }; } return descriptor.__destrObj; } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } return descriptor; } }

var Foo = function Foo(props) {
"use strict";

Expand All @@ -11,7 +9,7 @@ var Foo = function Foo(props) {
});

;
[_classPrivateFieldDestructureSet(this, _client).value] = props;
[babelHelpers.classPrivateFieldDestructureSet(this, _client).value] = props;
};

var _client = new WeakMap();
@@ -1,5 +1,3 @@
function _classPrivateFieldDestructureSet(receiver, privateMap) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to set private field on non-instance"); } var descriptor = privateMap.get(receiver); if (descriptor.set) { if (!("__destrObj" in descriptor)) { descriptor.__destrObj = { set value(v) { descriptor.set.call(receiver, v); } }; } return descriptor.__destrObj; } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } return descriptor; } }

var Foo = function Foo(props) {
"use strict";

Expand All @@ -14,7 +12,7 @@ var Foo = function Foo(props) {
;
({
x: this.x = babelHelpers.classPrivateFieldGet(this, _client),
y: _classPrivateFieldDestructureSet(this, _client).value,
y: babelHelpers.classPrivateFieldDestructureSet(this, _client).value,
z: this.z = babelHelpers.classPrivateFieldGet(this, _client)
} = props);
};
Expand Down
@@ -1,5 +1,3 @@
function _classPrivateFieldDestructureSet(receiver, privateMap) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to set private field on non-instance"); } var descriptor = privateMap.get(receiver); if (descriptor.set) { if (!("__destrObj" in descriptor)) { descriptor.__destrObj = { set value(v) { descriptor.set.call(receiver, v); } }; } return descriptor.__destrObj; } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } return descriptor; } }

var Foo = function Foo(props) {
"use strict";

Expand All @@ -13,7 +11,7 @@ var Foo = function Foo(props) {
;
({
x,
..._classPrivateFieldDestructureSet(this, _client).value
...babelHelpers.classPrivateFieldDestructureSet(this, _client).value
} = props);
};

Expand Down
@@ -1,5 +1,3 @@
function _classPrivateFieldDestructureSet(receiver, privateMap) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to set private field on non-instance"); } var descriptor = privateMap.get(receiver); if (descriptor.set) { if (!("__destrObj" in descriptor)) { descriptor.__destrObj = { set value(v) { descriptor.set.call(receiver, v); } }; } return descriptor.__destrObj; } else { if (!descriptor.writable) { throw new TypeError("attempted to set read only private field"); } return descriptor; } }

var Foo = function Foo(props) {
"use strict";

Expand All @@ -12,7 +10,7 @@ var Foo = function Foo(props) {

;
({
client: _classPrivateFieldDestructureSet(this, _client).value
client: babelHelpers.classPrivateFieldDestructureSet(this, _client).value
} = props);
};

Expand Down

0 comments on commit 29b6f54

Please sign in to comment.