Disallow reinitializing private elements (#13601)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
This commit is contained in:
parent
cb3ebde8ce
commit
fdfe97879e
@ -540,16 +540,31 @@ function buildPrivateInstanceFieldInitSpec(
|
|||||||
ref: t.Expression,
|
ref: t.Expression,
|
||||||
prop: NodePath<t.ClassPrivateProperty>,
|
prop: NodePath<t.ClassPrivateProperty>,
|
||||||
privateNamesMap: PrivateNamesMap,
|
privateNamesMap: PrivateNamesMap,
|
||||||
|
state,
|
||||||
) {
|
) {
|
||||||
const { id } = privateNamesMap.get(prop.node.key.id.name);
|
const { id } = privateNamesMap.get(prop.node.key.id.name);
|
||||||
const value = prop.node.value || prop.scope.buildUndefinedNode();
|
const value = prop.node.value || prop.scope.buildUndefinedNode();
|
||||||
|
|
||||||
return template.statement.ast`${t.cloneNode(id)}.set(${ref}, {
|
if (!process.env.BABEL_8_BREAKING) {
|
||||||
// configurable is always false for private elements
|
if (!state.availableHelper("classPrivateFieldInitSpec")) {
|
||||||
// enumerable is always false for private elements
|
return template.statement.ast`${t.cloneNode(id)}.set(${ref}, {
|
||||||
writable: true,
|
// configurable is always false for private elements
|
||||||
value: ${value},
|
// enumerable is always false for private elements
|
||||||
})`;
|
writable: true,
|
||||||
|
value: ${value},
|
||||||
|
})`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const helper = state.addHelper("classPrivateFieldInitSpec");
|
||||||
|
return template.statement.ast`${helper}(
|
||||||
|
${t.thisExpression()},
|
||||||
|
${t.cloneNode(id)},
|
||||||
|
{
|
||||||
|
writable: true,
|
||||||
|
value: ${value}
|
||||||
|
},
|
||||||
|
)`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildPrivateStaticFieldInitSpec(
|
function buildPrivateStaticFieldInitSpec(
|
||||||
@ -632,27 +647,87 @@ function buildPrivateInstanceMethodInitSpec(
|
|||||||
ref: t.Expression,
|
ref: t.Expression,
|
||||||
prop: NodePath<t.ClassPrivateMethod>,
|
prop: NodePath<t.ClassPrivateMethod>,
|
||||||
privateNamesMap: PrivateNamesMap,
|
privateNamesMap: PrivateNamesMap,
|
||||||
|
state,
|
||||||
) {
|
) {
|
||||||
const privateName = privateNamesMap.get(prop.node.key.id.name);
|
const privateName = privateNamesMap.get(prop.node.key.id.name);
|
||||||
const { id, getId, setId, initAdded } = privateName;
|
const { getId, setId, initAdded } = privateName;
|
||||||
|
|
||||||
if (initAdded) return;
|
if (initAdded) return;
|
||||||
|
|
||||||
const isAccessor = getId || setId;
|
const isAccessor = getId || setId;
|
||||||
if (isAccessor) {
|
if (isAccessor) {
|
||||||
privateNamesMap.set(prop.node.key.id.name, {
|
return buildPrivateAccessorInitialization(
|
||||||
...privateName,
|
ref,
|
||||||
initAdded: true,
|
prop,
|
||||||
});
|
privateNamesMap,
|
||||||
|
state,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return template.statement.ast`
|
return buildPrivateInstanceMethodInitalization(
|
||||||
|
ref,
|
||||||
|
prop,
|
||||||
|
privateNamesMap,
|
||||||
|
state,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function buildPrivateAccessorInitialization(
|
||||||
|
ref: t.Expression,
|
||||||
|
prop: NodePath<t.ClassPrivateMethod>,
|
||||||
|
privateNamesMap: PrivateNamesMap,
|
||||||
|
state,
|
||||||
|
) {
|
||||||
|
const privateName = privateNamesMap.get(prop.node.key.id.name);
|
||||||
|
const { id, getId, setId } = privateName;
|
||||||
|
|
||||||
|
privateNamesMap.set(prop.node.key.id.name, {
|
||||||
|
...privateName,
|
||||||
|
initAdded: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!process.env.BABEL_8_BREAKING) {
|
||||||
|
if (!state.availableHelper("classPrivateFieldInitSpec")) {
|
||||||
|
return template.statement.ast`
|
||||||
${id}.set(${ref}, {
|
${id}.set(${ref}, {
|
||||||
get: ${getId ? getId.name : prop.scope.buildUndefinedNode()},
|
get: ${getId ? getId.name : prop.scope.buildUndefinedNode()},
|
||||||
set: ${setId ? setId.name : prop.scope.buildUndefinedNode()}
|
set: ${setId ? setId.name : prop.scope.buildUndefinedNode()}
|
||||||
});
|
});
|
||||||
`;
|
`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return template.statement.ast`${id}.add(${ref})`;
|
|
||||||
|
const helper = state.addHelper("classPrivateFieldInitSpec");
|
||||||
|
return template.statement.ast`${helper}(
|
||||||
|
${t.thisExpression()},
|
||||||
|
${t.cloneNode(id)},
|
||||||
|
{
|
||||||
|
get: ${getId ? getId.name : prop.scope.buildUndefinedNode()},
|
||||||
|
set: ${setId ? setId.name : prop.scope.buildUndefinedNode()}
|
||||||
|
},
|
||||||
|
)`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function buildPrivateInstanceMethodInitalization(
|
||||||
|
ref: t.Expression,
|
||||||
|
prop: NodePath<t.ClassPrivateMethod>,
|
||||||
|
privateNamesMap: PrivateNamesMap,
|
||||||
|
state,
|
||||||
|
) {
|
||||||
|
const privateName = privateNamesMap.get(prop.node.key.id.name);
|
||||||
|
const { id } = privateName;
|
||||||
|
|
||||||
|
if (!process.env.BABEL_8_BREAKING) {
|
||||||
|
if (!state.availableHelper("classPrivateMethodInitSpec")) {
|
||||||
|
return template.statement.ast`${id}.add(${ref})`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const helper = state.addHelper("classPrivateMethodInitSpec");
|
||||||
|
return template.statement.ast`${helper}(
|
||||||
|
${t.thisExpression()},
|
||||||
|
${t.cloneNode(id)}
|
||||||
|
)`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildPublicFieldInitLoose(
|
function buildPublicFieldInitLoose(
|
||||||
@ -957,6 +1032,7 @@ export function buildFieldsInitNodes(
|
|||||||
// @ts-expect-error checked in switch
|
// @ts-expect-error checked in switch
|
||||||
prop,
|
prop,
|
||||||
privateNamesMap,
|
privateNamesMap,
|
||||||
|
state,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
@ -985,6 +1061,7 @@ export function buildFieldsInitNodes(
|
|||||||
// @ts-expect-error checked in switch
|
// @ts-expect-error checked in switch
|
||||||
prop,
|
prop,
|
||||||
privateNamesMap,
|
privateNamesMap,
|
||||||
|
state,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
pureStaticNodes.push(
|
pureStaticNodes.push(
|
||||||
|
|||||||
@ -0,0 +1,19 @@
|
|||||||
|
class Base {
|
||||||
|
constructor(obj) {
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Derived extends Base {
|
||||||
|
get #foo() {
|
||||||
|
return 'bar';
|
||||||
|
}
|
||||||
|
|
||||||
|
set #foo(value) {
|
||||||
|
this.#foo = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
static get(obj) {
|
||||||
|
return obj.#foo();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"presets": [["env", { "shippedProposals": true }]],
|
||||||
|
"targets": {
|
||||||
|
"chrome": "75"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,31 @@
|
|||||||
|
class Base {
|
||||||
|
constructor(obj) {
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
var _foo = /*#__PURE__*/new WeakMap();
|
||||||
|
|
||||||
|
class Derived extends Base {
|
||||||
|
constructor(...args) {
|
||||||
|
super(...args);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
|
get: _get_foo,
|
||||||
|
set: _set_foo
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
static get(obj) {
|
||||||
|
return babelHelpers.classPrivateFieldGet(obj, _foo).call(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function _get_foo() {
|
||||||
|
return 'bar';
|
||||||
|
}
|
||||||
|
|
||||||
|
function _set_foo(value) {
|
||||||
|
babelHelpers.classPrivateFieldSet(this, _foo, value);
|
||||||
|
}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
class Base {
|
||||||
|
constructor(obj) {
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let counter = 0;
|
||||||
|
class Derived extends Base {
|
||||||
|
#foo = ++counter;
|
||||||
|
static get(obj) {
|
||||||
|
return obj.#foo;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"presets": [["env", { "shippedProposals": true }]],
|
||||||
|
"targets": {
|
||||||
|
"chrome": "75"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
class Base {
|
||||||
|
constructor(obj) {
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
let counter = 0;
|
||||||
|
|
||||||
|
var _foo = /*#__PURE__*/new WeakMap();
|
||||||
|
|
||||||
|
class Derived extends Base {
|
||||||
|
constructor(...args) {
|
||||||
|
super(...args);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
|
writable: true,
|
||||||
|
value: ++counter
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
static get(obj) {
|
||||||
|
return babelHelpers.classPrivateFieldGet(obj, _foo);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
class Base {
|
||||||
|
constructor(obj) {
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class Derived extends Base {
|
||||||
|
#foo() {
|
||||||
|
return 'bar';
|
||||||
|
}
|
||||||
|
|
||||||
|
static get(obj) {
|
||||||
|
return obj.#foo();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"presets": [["env", { "shippedProposals": true }]],
|
||||||
|
"targets": {
|
||||||
|
"chrome": "75"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
class Base {
|
||||||
|
constructor(obj) {
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
var _foo = /*#__PURE__*/new WeakSet();
|
||||||
|
|
||||||
|
class Derived extends Base {
|
||||||
|
constructor(...args) {
|
||||||
|
super(...args);
|
||||||
|
babelHelpers.classPrivateMethodInitSpec(this, _foo);
|
||||||
|
}
|
||||||
|
|
||||||
|
static get(obj) {
|
||||||
|
return babelHelpers.classPrivateMethodGet(obj, _foo, _foo2).call(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function _foo2() {
|
||||||
|
return 'bar';
|
||||||
|
}
|
||||||
@ -2,7 +2,7 @@ var _privateMethod = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class X {
|
class X {
|
||||||
constructor() {
|
constructor() {
|
||||||
_privateMethod.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _privateMethod);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,8 +3,7 @@ var _foo = /*#__PURE__*/new WeakSet();
|
|||||||
class A extends B {
|
class A extends B {
|
||||||
constructor(...args) {
|
constructor(...args) {
|
||||||
super(...args);
|
super(...args);
|
||||||
|
babelHelpers.classPrivateMethodInitSpec(this, _foo);
|
||||||
_foo.add(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2022,6 +2022,32 @@ helpers.classPrivateMethodGet = helper("7.1.6")`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
helpers.checkPrivateRedeclaration = helper("7.14.1")`
|
||||||
|
export default function _checkPrivateRedeclaration(obj, privateCollection) {
|
||||||
|
if (privateCollection.has(obj)) {
|
||||||
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
helpers.classPrivateFieldInitSpec = helper("7.14.1")`
|
||||||
|
import checkPrivateRedeclaration from "checkPrivateRedeclaration";
|
||||||
|
|
||||||
|
export default function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
||||||
|
checkPrivateRedeclaration(obj, privateMap);
|
||||||
|
privateMap.set(obj, value);
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
helpers.classPrivateMethodInitSpec = helper("7.14.1")`
|
||||||
|
import checkPrivateRedeclaration from "checkPrivateRedeclaration";
|
||||||
|
|
||||||
|
export default function _classPrivateMethodInitSpec(obj, privateSet) {
|
||||||
|
checkPrivateRedeclaration(obj, privateSet);
|
||||||
|
privateSet.add(obj);
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
if (!process.env.BABEL_8_BREAKING) {
|
if (!process.env.BABEL_8_BREAKING) {
|
||||||
// Use readOnlyError instead
|
// Use readOnlyError instead
|
||||||
helpers.classPrivateMethodSet = helper("7.1.6")`
|
helpers.classPrivateMethodSet = helper("7.1.6")`
|
||||||
|
|||||||
@ -4,11 +4,10 @@ class C {
|
|||||||
constructor() {
|
constructor() {
|
||||||
var _babelHelpers$classPr;
|
var _babelHelpers$classPr;
|
||||||
|
|
||||||
_m.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _m, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
const o = null;
|
const o = null;
|
||||||
const n = this;
|
const n = this;
|
||||||
const p = o === null || o === void 0 ? void 0 : babelHelpers.classPrivateFieldGet(o, _m).call(o, ...c, 1);
|
const p = o === null || o === void 0 ? void 0 : babelHelpers.classPrivateFieldGet(o, _m).call(o, ...c, 1);
|
||||||
|
|||||||
@ -4,11 +4,10 @@ class C {
|
|||||||
constructor() {
|
constructor() {
|
||||||
var _babelHelpers$classPr;
|
var _babelHelpers$classPr;
|
||||||
|
|
||||||
_m.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _m, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
const o = null;
|
const o = null;
|
||||||
const n = this;
|
const n = this;
|
||||||
const p = o === null || o === void 0 ? void 0 : babelHelpers.classPrivateFieldGet(o, _m).call(o, ...c, 1);
|
const p = o === null || o === void 0 ? void 0 : babelHelpers.classPrivateFieldGet(o, _m).call(o, ...c, 1);
|
||||||
|
|||||||
@ -2,7 +2,7 @@ var _g = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class C {
|
class C {
|
||||||
constructor() {
|
constructor() {
|
||||||
_g.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _g);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var D = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function D() {
|
function D() {
|
||||||
babelHelpers.classCallCheck(this, D);
|
babelHelpers.classCallCheck(this, D);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _arr, {
|
||||||
_arr.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
@ -30,8 +29,7 @@ var C = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function C() {
|
function C() {
|
||||||
babelHelpers.classCallCheck(this, C);
|
babelHelpers.classCallCheck(this, C);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _p, {
|
||||||
_p.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
@ -55,8 +53,7 @@ var E = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function E() {
|
function E() {
|
||||||
babelHelpers.classCallCheck(this, E);
|
babelHelpers.classCallCheck(this, E);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _arr2, {
|
||||||
_arr2.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
@ -80,8 +77,7 @@ var F = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function F() {
|
function F() {
|
||||||
babelHelpers.classCallCheck(this, F);
|
babelHelpers.classCallCheck(this, F);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _ar, {
|
||||||
_ar.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: function () {
|
value: function () {
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@ -7,17 +7,14 @@ var Point = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Point(x = 0, y = 0) {
|
function Point(x = 0, y = 0) {
|
||||||
babelHelpers.classCallCheck(this, Point);
|
babelHelpers.classCallCheck(this, Point);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _x, {
|
||||||
_x.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _y, {
|
||||||
_y.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
babelHelpers.classPrivateFieldSet(this, _x, +x);
|
babelHelpers.classPrivateFieldSet(this, _x, +x);
|
||||||
babelHelpers.classPrivateFieldSet(this, _y, +y);
|
babelHelpers.classPrivateFieldSet(this, _y, +y);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,11 +6,9 @@ var Foo = function Foo() {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _bar, {
|
||||||
_bar.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: foo
|
value: foo
|
||||||
});
|
});
|
||||||
|
|
||||||
var _foo = "foo";
|
var _foo = "foo";
|
||||||
};
|
};
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var C = function C() {
|
|||||||
|
|
||||||
babelHelpers.classCallCheck(this, C);
|
babelHelpers.classCallCheck(this, C);
|
||||||
babelHelpers.defineProperty(this, "y", babelHelpers.classPrivateFieldGet(this, _x));
|
babelHelpers.defineProperty(this, "y", babelHelpers.classPrivateFieldGet(this, _x));
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _x, {
|
||||||
_x.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -14,15 +14,13 @@ var Foo = /*#__PURE__*/function (_Bar) {
|
|||||||
|
|
||||||
if (condition) {
|
if (condition) {
|
||||||
_this = _super.call(this);
|
_this = _super.call(this);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _bar, {
|
||||||
_bar.set(babelHelpers.assertThisInitialized(_this), {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "foo"
|
value: "foo"
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
_this = _super.call(this);
|
_this = _super.call(this);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _bar, {
|
||||||
_bar.set(babelHelpers.assertThisInitialized(_this), {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "foo"
|
value: "foo"
|
||||||
});
|
});
|
||||||
|
|||||||
@ -4,8 +4,7 @@ var Foo = function Foo() {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _prop, {
|
||||||
_prop.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "foo"
|
value: "foo"
|
||||||
});
|
});
|
||||||
@ -25,12 +24,10 @@ var Bar = /*#__PURE__*/function (_Foo) {
|
|||||||
|
|
||||||
babelHelpers.classCallCheck(this, Bar);
|
babelHelpers.classCallCheck(this, Bar);
|
||||||
_this = _super.call(this, ...args);
|
_this = _super.call(this, ...args);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _prop2, {
|
||||||
_prop2.set(babelHelpers.assertThisInitialized(_this), {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "bar"
|
value: "bar"
|
||||||
});
|
});
|
||||||
|
|
||||||
return _this;
|
return _this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,12 +4,10 @@ var Foo = function Foo(props) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _client, {
|
||||||
_client.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
babelHelpers.classPrivateFieldSet(this, _client, 1);
|
babelHelpers.classPrivateFieldSet(this, _client, 1);
|
||||||
[this.x = babelHelpers.classPrivateFieldGet(this, _client), babelHelpers.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;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -4,11 +4,9 @@ var Foo = function Foo(props) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _client, {
|
||||||
_client.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
[x, ...babelHelpers.classPrivateFieldDestructureSet(this, _client).value] = props;
|
[x, ...babelHelpers.classPrivateFieldDestructureSet(this, _client).value] = props;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -4,11 +4,9 @@ var Foo = function Foo(props) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _client, {
|
||||||
_client.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
[babelHelpers.classPrivateFieldDestructureSet(this, _client).value = 5] = props;
|
[babelHelpers.classPrivateFieldDestructureSet(this, _client).value = 5] = props;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -4,11 +4,9 @@ var Foo = function Foo(props) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _client, {
|
||||||
_client.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
[babelHelpers.classPrivateFieldDestructureSet(this, _client).value] = props;
|
[babelHelpers.classPrivateFieldDestructureSet(this, _client).value] = props;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -4,12 +4,10 @@ var Foo = function Foo(props) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _client, {
|
||||||
_client.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
babelHelpers.classPrivateFieldSet(this, _client, 'foo');
|
babelHelpers.classPrivateFieldSet(this, _client, 'foo');
|
||||||
({
|
({
|
||||||
x: this.x = babelHelpers.classPrivateFieldGet(this, _client),
|
x: this.x = babelHelpers.classPrivateFieldGet(this, _client),
|
||||||
|
|||||||
@ -4,12 +4,10 @@ var Foo = function Foo(props) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _client, {
|
||||||
_client.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
({
|
({
|
||||||
x,
|
x,
|
||||||
...babelHelpers.classPrivateFieldDestructureSet(this, _client).value
|
...babelHelpers.classPrivateFieldDestructureSet(this, _client).value
|
||||||
|
|||||||
@ -4,12 +4,10 @@ var Foo = function Foo(props) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _client, {
|
||||||
_client.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
({
|
({
|
||||||
x: babelHelpers.classPrivateFieldDestructureSet(this, _client).value = 5
|
x: babelHelpers.classPrivateFieldDestructureSet(this, _client).value = 5
|
||||||
} = props);
|
} = props);
|
||||||
|
|||||||
@ -4,12 +4,10 @@ var Foo = function Foo(props) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _client, {
|
||||||
_client.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
({
|
({
|
||||||
client: babelHelpers.classPrivateFieldDestructureSet(this, _client).value
|
client: babelHelpers.classPrivateFieldDestructureSet(this, _client).value
|
||||||
} = props);
|
} = props);
|
||||||
|
|||||||
@ -8,13 +8,11 @@ var Foo = function Foo(_foo) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _bar, {
|
||||||
_bar.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: this
|
value: this
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _baz, {
|
||||||
_baz.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: foo
|
value: foo
|
||||||
});
|
});
|
||||||
|
|||||||
@ -12,14 +12,12 @@ var Child = /*#__PURE__*/function (_Parent) {
|
|||||||
|
|
||||||
babelHelpers.classCallCheck(this, Child);
|
babelHelpers.classCallCheck(this, Child);
|
||||||
_this = _super.call(this);
|
_this = _super.call(this);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _scopedFunctionWithThis, {
|
||||||
_scopedFunctionWithThis.set(babelHelpers.assertThisInitialized(_this), {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: () => {
|
value: () => {
|
||||||
_this.name = {};
|
_this.name = {};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return _this;
|
return _this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,8 +4,7 @@ var Foo = function Foo() {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _bar, {
|
||||||
_bar.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -4,8 +4,7 @@ var Foo = function Foo() {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _bar, {
|
||||||
_bar.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "foo"
|
value: "foo"
|
||||||
});
|
});
|
||||||
|
|||||||
@ -6,17 +6,15 @@ var _or = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_nullish.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _nullish, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _and, {
|
||||||
_and.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _or, {
|
||||||
_or.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -6,13 +6,11 @@ var Foo = function Foo() {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _x, {
|
||||||
_x.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _y, {
|
||||||
_y.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: babelHelpers.classPrivateFieldGet(this, _x)
|
value: babelHelpers.classPrivateFieldGet(this, _x)
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,7 +2,7 @@ var _bar = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_bar.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _bar, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "bar"
|
value: "bar"
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
@ -24,8 +23,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
var Nested = /*#__PURE__*/function (_babelHelpers$classPr2) {
|
var Nested = /*#__PURE__*/function (_babelHelpers$classPr2) {
|
||||||
function Nested() {
|
function Nested() {
|
||||||
babelHelpers.classCallCheck(this, Nested);
|
babelHelpers.classCallCheck(this, Nested);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo2, {
|
||||||
_foo2.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 2
|
value: 2
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
@ -31,12 +30,10 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
babelHelpers.classCallCheck(this, Nested);
|
babelHelpers.classCallCheck(this, Nested);
|
||||||
_this = _super.call(this, ...args);
|
_this = _super.call(this, ...args);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _foo2, {
|
||||||
_foo2.set(babelHelpers.assertThisInitialized(_this), {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 3
|
value: 3
|
||||||
});
|
});
|
||||||
|
|
||||||
return _this;
|
return _this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,12 +41,10 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
}((_foo3 = /*#__PURE__*/new WeakMap(), _babelHelpers$classPr = babelHelpers.classPrivateFieldGet(this, _foo3), /*#__PURE__*/function () {
|
}((_foo3 = /*#__PURE__*/new WeakMap(), _babelHelpers$classPr = babelHelpers.classPrivateFieldGet(this, _foo3), /*#__PURE__*/function () {
|
||||||
function _class2() {
|
function _class2() {
|
||||||
babelHelpers.classCallCheck(this, _class2);
|
babelHelpers.classCallCheck(this, _class2);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo3, {
|
||||||
_foo3.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 2
|
value: 2
|
||||||
});
|
});
|
||||||
|
|
||||||
babelHelpers.defineProperty(this, _babelHelpers$classPr, 2);
|
babelHelpers.defineProperty(this, _babelHelpers$classPr, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
@ -29,12 +28,10 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
babelHelpers.classCallCheck(this, Nested);
|
babelHelpers.classCallCheck(this, Nested);
|
||||||
_this = _super.call(this, ...args);
|
_this = _super.call(this, ...args);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _foo2, {
|
||||||
_foo2.set(babelHelpers.assertThisInitialized(_this), {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 3
|
value: 3
|
||||||
});
|
});
|
||||||
|
|
||||||
return _this;
|
return _this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -7,13 +7,11 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _bar, {
|
||||||
_bar.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
@ -27,8 +25,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
var Nested = /*#__PURE__*/function () {
|
var Nested = /*#__PURE__*/function () {
|
||||||
function Nested() {
|
function Nested() {
|
||||||
babelHelpers.classCallCheck(this, Nested);
|
babelHelpers.classCallCheck(this, Nested);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _bar2, {
|
||||||
_bar2.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 2
|
value: 2
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
@ -20,8 +19,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
var Nested = /*#__PURE__*/function () {
|
var Nested = /*#__PURE__*/function () {
|
||||||
function Nested() {
|
function Nested() {
|
||||||
babelHelpers.classCallCheck(this, Nested);
|
babelHelpers.classCallCheck(this, Nested);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo2, {
|
||||||
_foo2.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 2
|
value: 2
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,7 +2,7 @@ var _m = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_m.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _m, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -4,8 +4,7 @@ var Outer = function Outer() {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Outer);
|
babelHelpers.classCallCheck(this, Outer);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _outer, {
|
||||||
_outer.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -3,7 +3,7 @@ function classFactory() {
|
|||||||
|
|
||||||
return _temp = (_foo = /*#__PURE__*/new WeakMap(), _class = class Foo {
|
return _temp = (_foo = /*#__PURE__*/new WeakMap(), _class = class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_foo.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "foo"
|
value: "foo"
|
||||||
});
|
});
|
||||||
|
|||||||
@ -9,20 +9,16 @@ var Foo = function Foo() {
|
|||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
babelHelpers.defineProperty(this, "one", babelHelpers.classPrivateFieldGet(this, _private));
|
babelHelpers.defineProperty(this, "one", babelHelpers.classPrivateFieldGet(this, _private));
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _two, {
|
||||||
_two.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: babelHelpers.classPrivateFieldGet(this, _private)
|
value: babelHelpers.classPrivateFieldGet(this, _private)
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _private, {
|
||||||
_private.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
babelHelpers.defineProperty(this, "three", babelHelpers.classPrivateFieldGet(this, _private));
|
babelHelpers.defineProperty(this, "three", babelHelpers.classPrivateFieldGet(this, _private));
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _four, {
|
||||||
_four.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: babelHelpers.classPrivateFieldGet(this, _private)
|
value: babelHelpers.classPrivateFieldGet(this, _private)
|
||||||
});
|
});
|
||||||
|
|||||||
@ -4,7 +4,7 @@ class MyClass {
|
|||||||
constructor() {
|
constructor() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
_myAsyncMethod.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _myAsyncMethod, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: function () {
|
value: function () {
|
||||||
var _ref = babelHelpers.asyncToGenerator(function* () {
|
var _ref = babelHelpers.asyncToGenerator(function* () {
|
||||||
@ -26,7 +26,7 @@ var _myAsyncMethod2 = /*#__PURE__*/new WeakMap();
|
|||||||
constructor() {
|
constructor() {
|
||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
|
|
||||||
_myAsyncMethod2.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _myAsyncMethod2, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: function () {
|
value: function () {
|
||||||
var _ref2 = babelHelpers.asyncToGenerator(function* () {
|
var _ref2 = babelHelpers.asyncToGenerator(function* () {
|
||||||
@ -48,7 +48,7 @@ export default class MyClass3 {
|
|||||||
constructor() {
|
constructor() {
|
||||||
var _this3 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
_myAsyncMethod3.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _myAsyncMethod3, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: function () {
|
value: function () {
|
||||||
var _ref3 = babelHelpers.asyncToGenerator(function* () {
|
var _ref3 = babelHelpers.asyncToGenerator(function* () {
|
||||||
|
|||||||
@ -28,12 +28,10 @@ var B = /*#__PURE__*/function (_A) {
|
|||||||
|
|
||||||
babelHelpers.classCallCheck(this, B);
|
babelHelpers.classCallCheck(this, B);
|
||||||
_this = _super.call(this, ...args);
|
_this = _super.call(this, ...args);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _foo, {
|
||||||
_foo.set(babelHelpers.assertThisInitialized(_this), {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(B.prototype)), "foo", _thisSuper).call(_thisSuper)
|
value: babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(B.prototype)), "foo", _thisSuper).call(_thisSuper)
|
||||||
});
|
});
|
||||||
|
|
||||||
return _this;
|
return _this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ var Foo = /*#__PURE__*/function (_Bar) {
|
|||||||
var _temp, _this;
|
var _temp, _this;
|
||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
foo((_temp = _this = _super.call(this), _bar.set(babelHelpers.assertThisInitialized(_this), {
|
foo((_temp = _this = _super.call(this), babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _bar, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "foo"
|
value: "foo"
|
||||||
}), _temp));
|
}), _temp));
|
||||||
|
|||||||
@ -12,12 +12,10 @@ var Foo = /*#__PURE__*/function (_Bar) {
|
|||||||
|
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
_this = _super.call(this);
|
_this = _super.call(this);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(babelHelpers.assertThisInitialized(_this), _bar, {
|
||||||
_bar.set(babelHelpers.assertThisInitialized(_this), {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "foo"
|
value: "foo"
|
||||||
});
|
});
|
||||||
|
|
||||||
return _this;
|
return _this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _tag, {
|
||||||
_tag.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ var Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -8,8 +8,7 @@ for (let i = 0; i <= 10; ++i) {
|
|||||||
classes.push((_temp = (_bar = /*#__PURE__*/new WeakMap(), _i = i, _class = class A {
|
classes.push((_temp = (_bar = /*#__PURE__*/new WeakMap(), _i = i, _class = class A {
|
||||||
constructor() {
|
constructor() {
|
||||||
babelHelpers.defineProperty(this, _i, `computed field ${i}`);
|
babelHelpers.defineProperty(this, _i, `computed field ${i}`);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _bar, {
|
||||||
_bar.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: `private field ${i}`
|
value: `private field ${i}`
|
||||||
});
|
});
|
||||||
|
|||||||
@ -4,16 +4,14 @@ var _privateFieldValue = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Cl {
|
class Cl {
|
||||||
constructor() {
|
constructor() {
|
||||||
_privateFieldValue.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _privateFieldValue, {
|
||||||
get: _get_privateFieldValue,
|
get: _get_privateFieldValue,
|
||||||
set: _set_privateFieldValue
|
set: _set_privateFieldValue
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _privateField, {
|
||||||
_privateField.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "top secret string"
|
value: "top secret string"
|
||||||
});
|
});
|
||||||
|
|
||||||
this.publicField = "not secret string";
|
this.publicField = "not secret string";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,16 +4,14 @@ var _privateFieldValue = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Cl {
|
class Cl {
|
||||||
constructor() {
|
constructor() {
|
||||||
_privateFieldValue.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _privateFieldValue, {
|
||||||
get: void 0,
|
get: void 0,
|
||||||
set: _set_privateFieldValue
|
set: _set_privateFieldValue
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _privateField, {
|
||||||
_privateField.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
this.publicField = (this, babelHelpers.writeOnlyError("#privateFieldValue"));
|
this.publicField = (this, babelHelpers.writeOnlyError("#privateFieldValue"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,11 +4,10 @@ var _privateFieldValue = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_privateFieldValue.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _privateFieldValue, {
|
||||||
get: _get_privateFieldValue,
|
get: _get_privateFieldValue,
|
||||||
set: void 0
|
set: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
this.self, results.push(2), babelHelpers.readOnlyError("#privateFieldValue");
|
this.self, results.push(2), babelHelpers.readOnlyError("#privateFieldValue");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9,16 +9,14 @@ class Cl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
_privateFieldValue.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _privateFieldValue, {
|
||||||
get: _get_privateFieldValue,
|
get: _get_privateFieldValue,
|
||||||
set: void 0
|
set: void 0
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _privateField, {
|
||||||
_privateField.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
babelHelpers.defineProperty(this, "counter", 0);
|
babelHelpers.defineProperty(this, "counter", 0);
|
||||||
this.self, 1([babelHelpers.classPrivateFieldDestructureSet(this.self, _privateFieldValue).value] = [1]), babelHelpers.readOnlyError("#privateFieldValue");
|
this.self, 1([babelHelpers.classPrivateFieldDestructureSet(this.self, _privateFieldValue).value] = [1]), babelHelpers.readOnlyError("#privateFieldValue");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,11 +2,10 @@ var _tag = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_tag.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _tag, {
|
||||||
get: _get_tag,
|
get: _get_tag,
|
||||||
set: void 0
|
set: void 0
|
||||||
});
|
});
|
||||||
|
|
||||||
babelHelpers.classPrivateFieldGet(this, _tag).bind(this)``;
|
babelHelpers.classPrivateFieldGet(this, _tag).bind(this)``;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,16 +4,14 @@ var _privateFieldValue = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Cl {
|
class Cl {
|
||||||
constructor() {
|
constructor() {
|
||||||
_privateFieldValue.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _privateFieldValue, {
|
||||||
get: _get_privateFieldValue,
|
get: _get_privateFieldValue,
|
||||||
set: _set_privateFieldValue
|
set: _set_privateFieldValue
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _privateField, {
|
||||||
_privateField.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "top secret string"
|
value: "top secret string"
|
||||||
});
|
});
|
||||||
|
|
||||||
this.publicField = "not secret string";
|
this.publicField = "not secret string";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10,8 +10,7 @@ var _privateMethod = /*#__PURE__*/new WeakSet();
|
|||||||
class Sub extends Base {
|
class Sub extends Base {
|
||||||
constructor(...args) {
|
constructor(...args) {
|
||||||
super(...args);
|
super(...args);
|
||||||
|
babelHelpers.classPrivateMethodInitSpec(this, _privateMethod);
|
||||||
_privateMethod.add(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
superMethod() {
|
superMethod() {
|
||||||
|
|||||||
@ -4,12 +4,11 @@ var _getSet = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Cl {
|
class Cl {
|
||||||
constructor() {
|
constructor() {
|
||||||
_getSet.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _getSet, {
|
||||||
get: _get_getSet,
|
get: _get_getSet,
|
||||||
set: _set_getSet
|
set: _set_getSet
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _privateField, {
|
||||||
_privateField.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -4,12 +4,11 @@ var _getSet = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Cl {
|
class Cl {
|
||||||
constructor() {
|
constructor() {
|
||||||
_getSet.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _getSet, {
|
||||||
get: _get_getSet,
|
get: _get_getSet,
|
||||||
set: _set_getSet
|
set: _set_getSet
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _privateField, {
|
||||||
_privateField.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 0
|
value: 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,8 +2,7 @@ var _privateMethod = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_privateMethod.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _privateMethod);
|
||||||
|
|
||||||
this.publicField = babelHelpers.classPrivateMethodGet(this, _privateMethod, _privateMethod2).call(this);
|
this.publicField = babelHelpers.classPrivateMethodGet(this, _privateMethod, _privateMethod2).call(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ var _foo = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class Cl {
|
class Cl {
|
||||||
constructor() {
|
constructor() {
|
||||||
_foo.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _foo);
|
||||||
}
|
}
|
||||||
|
|
||||||
test() {
|
test() {
|
||||||
|
|||||||
@ -4,11 +4,9 @@ var _method = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class Cl {
|
class Cl {
|
||||||
constructor() {
|
constructor() {
|
||||||
_method.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _method);
|
||||||
|
|
||||||
babelHelpers.defineProperty(this, "prop", babelHelpers.classPrivateMethodGet(this, _method, _method2).call(this, 1));
|
babelHelpers.defineProperty(this, "prop", babelHelpers.classPrivateMethodGet(this, _method, _method2).call(this, 1));
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _priv, {
|
||||||
_priv.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: babelHelpers.classPrivateMethodGet(this, _method, _method2).call(this, 2)
|
value: babelHelpers.classPrivateMethodGet(this, _method, _method2).call(this, 2)
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,7 +2,7 @@ var _foo;
|
|||||||
|
|
||||||
console.log((_foo = /*#__PURE__*/new WeakSet(), class A {
|
console.log((_foo = /*#__PURE__*/new WeakSet(), class A {
|
||||||
constructor() {
|
constructor() {
|
||||||
_foo.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _foo);
|
||||||
}
|
}
|
||||||
|
|
||||||
method() {
|
method() {
|
||||||
|
|||||||
@ -2,8 +2,7 @@ var _getStatus = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor(status) {
|
constructor(status) {
|
||||||
_getStatus.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _getStatus);
|
||||||
|
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ var _privateMethod = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_privateMethod.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _privateMethod);
|
||||||
|
|
||||||
if (exfiltrated === undefined) {
|
if (exfiltrated === undefined) {
|
||||||
exfiltrated = babelHelpers.classPrivateMethodGet(this, _privateMethod, _privateMethod2);
|
exfiltrated = babelHelpers.classPrivateMethodGet(this, _privateMethod, _privateMethod2);
|
||||||
|
|||||||
@ -2,7 +2,7 @@ var _foo = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class Cl {
|
class Cl {
|
||||||
constructor() {
|
constructor() {
|
||||||
_foo.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _foo);
|
||||||
}
|
}
|
||||||
|
|
||||||
test() {
|
test() {
|
||||||
|
|||||||
@ -7,8 +7,7 @@ class A {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
_method.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _method);
|
||||||
|
|
||||||
babelHelpers.defineProperty(this, "counter", 0);
|
babelHelpers.defineProperty(this, "counter", 0);
|
||||||
this.self(), 2, babelHelpers.readOnlyError("#method");
|
this.self(), 2, babelHelpers.readOnlyError("#method");
|
||||||
[babelHelpers.classPrivateFieldDestructureSet(this, _method).value] = [2];
|
[babelHelpers.classPrivateFieldDestructureSet(this, _method).value] = [2];
|
||||||
|
|||||||
@ -4,8 +4,7 @@ var _privateFieldValue = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_privateFieldValue.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _privateFieldValue);
|
||||||
|
|
||||||
this.self, results.push(2), babelHelpers.readOnlyError("#privateFieldValue");
|
this.self, results.push(2), babelHelpers.readOnlyError("#privateFieldValue");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10,8 +10,7 @@ var _privateMethod = /*#__PURE__*/new WeakSet();
|
|||||||
class Sub extends Base {
|
class Sub extends Base {
|
||||||
constructor(...args) {
|
constructor(...args) {
|
||||||
super(...args);
|
super(...args);
|
||||||
|
babelHelpers.classPrivateMethodInitSpec(this, _privateMethod);
|
||||||
_privateMethod.add(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
superMethod() {
|
superMethod() {
|
||||||
|
|||||||
@ -2,7 +2,7 @@ var _tag = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_tag.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@ var _bar = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_bar.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _bar, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "bar"
|
value: "bar"
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ let Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
get: _get_foo,
|
get: _get_foo,
|
||||||
set: void 0
|
set: void 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ let Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ let Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateMethodInitSpec(this, _foo);
|
||||||
_foo.add(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
babelHelpers.createClass(Foo, [{
|
babelHelpers.createClass(Foo, [{
|
||||||
|
|||||||
@ -2,7 +2,7 @@ var _bar = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
constructor() {
|
constructor() {
|
||||||
_bar.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _bar, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: "bar"
|
value: "bar"
|
||||||
});
|
});
|
||||||
|
|||||||
@ -7,13 +7,11 @@ let Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _bar, {
|
||||||
_bar.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
@ -27,8 +25,7 @@ let Foo = /*#__PURE__*/function () {
|
|||||||
let Nested = /*#__PURE__*/function () {
|
let Nested = /*#__PURE__*/function () {
|
||||||
function Nested() {
|
function Nested() {
|
||||||
babelHelpers.classCallCheck(this, Nested);
|
babelHelpers.classCallCheck(this, Nested);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _bar2, {
|
||||||
_bar2.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 2
|
value: 2
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ let Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
@ -20,8 +19,7 @@ let Foo = /*#__PURE__*/function () {
|
|||||||
let Nested = /*#__PURE__*/function () {
|
let Nested = /*#__PURE__*/function () {
|
||||||
function Nested() {
|
function Nested() {
|
||||||
babelHelpers.classCallCheck(this, Nested);
|
babelHelpers.classCallCheck(this, Nested);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo2, {
|
||||||
_foo2.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 2
|
value: 2
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5,8 +5,7 @@ let Foo = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
function Foo() {
|
function Foo() {
|
||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
_foo.set(this, {
|
|
||||||
writable: true,
|
writable: true,
|
||||||
value: 1
|
value: 1
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,8 +2,7 @@ var _foo = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class A {
|
class A {
|
||||||
constructor() {
|
constructor() {
|
||||||
_foo.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _foo);
|
||||||
|
|
||||||
babelHelpers.defineProperty(this, "x", 2);
|
babelHelpers.defineProperty(this, "x", 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,7 @@ var _foo = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class A {
|
class A {
|
||||||
constructor() {
|
constructor() {
|
||||||
_foo.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _foo);
|
||||||
|
|
||||||
babelHelpers.defineProperty(this, "x", 2);
|
babelHelpers.defineProperty(this, "x", 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,7 @@ var _foo = /*#__PURE__*/new WeakSet();
|
|||||||
|
|
||||||
class A {
|
class A {
|
||||||
constructor() {
|
constructor() {
|
||||||
_foo.add(this);
|
babelHelpers.classPrivateMethodInitSpec(this, _foo);
|
||||||
|
|
||||||
babelHelpers.defineProperty(this, "x", 2);
|
babelHelpers.defineProperty(this, "x", 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ var _foo = /*#__PURE__*/new WeakMap();
|
|||||||
|
|
||||||
class A {
|
class A {
|
||||||
constructor() {
|
constructor() {
|
||||||
_foo.set(this, {
|
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: void 0
|
value: void 0
|
||||||
});
|
});
|
||||||
|
|||||||
@ -801,6 +801,33 @@
|
|||||||
"./helpers/classPrivateMethodGet.js"
|
"./helpers/classPrivateMethodGet.js"
|
||||||
],
|
],
|
||||||
"./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js",
|
"./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js",
|
||||||
|
"./helpers/checkPrivateRedeclaration": [
|
||||||
|
{
|
||||||
|
"node": "./helpers/checkPrivateRedeclaration.js",
|
||||||
|
"import": "./helpers/esm/checkPrivateRedeclaration.js",
|
||||||
|
"default": "./helpers/checkPrivateRedeclaration.js"
|
||||||
|
},
|
||||||
|
"./helpers/checkPrivateRedeclaration.js"
|
||||||
|
],
|
||||||
|
"./helpers/esm/checkPrivateRedeclaration": "./helpers/esm/checkPrivateRedeclaration.js",
|
||||||
|
"./helpers/classPrivateFieldInitSpec": [
|
||||||
|
{
|
||||||
|
"node": "./helpers/classPrivateFieldInitSpec.js",
|
||||||
|
"import": "./helpers/esm/classPrivateFieldInitSpec.js",
|
||||||
|
"default": "./helpers/classPrivateFieldInitSpec.js"
|
||||||
|
},
|
||||||
|
"./helpers/classPrivateFieldInitSpec.js"
|
||||||
|
],
|
||||||
|
"./helpers/esm/classPrivateFieldInitSpec": "./helpers/esm/classPrivateFieldInitSpec.js",
|
||||||
|
"./helpers/classPrivateMethodInitSpec": [
|
||||||
|
{
|
||||||
|
"node": "./helpers/classPrivateMethodInitSpec.js",
|
||||||
|
"import": "./helpers/esm/classPrivateMethodInitSpec.js",
|
||||||
|
"default": "./helpers/classPrivateMethodInitSpec.js"
|
||||||
|
},
|
||||||
|
"./helpers/classPrivateMethodInitSpec.js"
|
||||||
|
],
|
||||||
|
"./helpers/esm/classPrivateMethodInitSpec": "./helpers/esm/classPrivateMethodInitSpec.js",
|
||||||
"./helpers/classPrivateMethodSet": [
|
"./helpers/classPrivateMethodSet": [
|
||||||
{
|
{
|
||||||
"node": "./helpers/classPrivateMethodSet.js",
|
"node": "./helpers/classPrivateMethodSet.js",
|
||||||
|
|||||||
@ -800,6 +800,33 @@
|
|||||||
"./helpers/classPrivateMethodGet.js"
|
"./helpers/classPrivateMethodGet.js"
|
||||||
],
|
],
|
||||||
"./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js",
|
"./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js",
|
||||||
|
"./helpers/checkPrivateRedeclaration": [
|
||||||
|
{
|
||||||
|
"node": "./helpers/checkPrivateRedeclaration.js",
|
||||||
|
"import": "./helpers/esm/checkPrivateRedeclaration.js",
|
||||||
|
"default": "./helpers/checkPrivateRedeclaration.js"
|
||||||
|
},
|
||||||
|
"./helpers/checkPrivateRedeclaration.js"
|
||||||
|
],
|
||||||
|
"./helpers/esm/checkPrivateRedeclaration": "./helpers/esm/checkPrivateRedeclaration.js",
|
||||||
|
"./helpers/classPrivateFieldInitSpec": [
|
||||||
|
{
|
||||||
|
"node": "./helpers/classPrivateFieldInitSpec.js",
|
||||||
|
"import": "./helpers/esm/classPrivateFieldInitSpec.js",
|
||||||
|
"default": "./helpers/classPrivateFieldInitSpec.js"
|
||||||
|
},
|
||||||
|
"./helpers/classPrivateFieldInitSpec.js"
|
||||||
|
],
|
||||||
|
"./helpers/esm/classPrivateFieldInitSpec": "./helpers/esm/classPrivateFieldInitSpec.js",
|
||||||
|
"./helpers/classPrivateMethodInitSpec": [
|
||||||
|
{
|
||||||
|
"node": "./helpers/classPrivateMethodInitSpec.js",
|
||||||
|
"import": "./helpers/esm/classPrivateMethodInitSpec.js",
|
||||||
|
"default": "./helpers/classPrivateMethodInitSpec.js"
|
||||||
|
},
|
||||||
|
"./helpers/classPrivateMethodInitSpec.js"
|
||||||
|
],
|
||||||
|
"./helpers/esm/classPrivateMethodInitSpec": "./helpers/esm/classPrivateMethodInitSpec.js",
|
||||||
"./helpers/classPrivateMethodSet": [
|
"./helpers/classPrivateMethodSet": [
|
||||||
{
|
{
|
||||||
"node": "./helpers/classPrivateMethodSet.js",
|
"node": "./helpers/classPrivateMethodSet.js",
|
||||||
|
|||||||
@ -800,6 +800,33 @@
|
|||||||
"./helpers/classPrivateMethodGet.js"
|
"./helpers/classPrivateMethodGet.js"
|
||||||
],
|
],
|
||||||
"./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js",
|
"./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js",
|
||||||
|
"./helpers/checkPrivateRedeclaration": [
|
||||||
|
{
|
||||||
|
"node": "./helpers/checkPrivateRedeclaration.js",
|
||||||
|
"import": "./helpers/esm/checkPrivateRedeclaration.js",
|
||||||
|
"default": "./helpers/checkPrivateRedeclaration.js"
|
||||||
|
},
|
||||||
|
"./helpers/checkPrivateRedeclaration.js"
|
||||||
|
],
|
||||||
|
"./helpers/esm/checkPrivateRedeclaration": "./helpers/esm/checkPrivateRedeclaration.js",
|
||||||
|
"./helpers/classPrivateFieldInitSpec": [
|
||||||
|
{
|
||||||
|
"node": "./helpers/classPrivateFieldInitSpec.js",
|
||||||
|
"import": "./helpers/esm/classPrivateFieldInitSpec.js",
|
||||||
|
"default": "./helpers/classPrivateFieldInitSpec.js"
|
||||||
|
},
|
||||||
|
"./helpers/classPrivateFieldInitSpec.js"
|
||||||
|
],
|
||||||
|
"./helpers/esm/classPrivateFieldInitSpec": "./helpers/esm/classPrivateFieldInitSpec.js",
|
||||||
|
"./helpers/classPrivateMethodInitSpec": [
|
||||||
|
{
|
||||||
|
"node": "./helpers/classPrivateMethodInitSpec.js",
|
||||||
|
"import": "./helpers/esm/classPrivateMethodInitSpec.js",
|
||||||
|
"default": "./helpers/classPrivateMethodInitSpec.js"
|
||||||
|
},
|
||||||
|
"./helpers/classPrivateMethodInitSpec.js"
|
||||||
|
],
|
||||||
|
"./helpers/esm/classPrivateMethodInitSpec": "./helpers/esm/classPrivateMethodInitSpec.js",
|
||||||
"./helpers/classPrivateMethodSet": [
|
"./helpers/classPrivateMethodSet": [
|
||||||
{
|
{
|
||||||
"node": "./helpers/classPrivateMethodSet.js",
|
"node": "./helpers/classPrivateMethodSet.js",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user