Add a check for privateMap's existence (#11571)

Co-authored-by: Ajay Poshak <ajay.poshak@bookmyshow.com>
This commit is contained in:
Ajay Poshak
2020-05-31 02:08:15 +05:30
committed by GitHub
parent cd9c71c5b3
commit b1923fd140
117 changed files with 332 additions and 333 deletions

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -20,5 +22,3 @@ var Foo = /*#__PURE__*/function () {
}]);
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -21,5 +23,3 @@ var Foo = /*#__PURE__*/function () {
}]);
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@@ -1,3 +1,7 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x");
var _y = babelHelpers.classPrivateFieldLooseKey("y");
var Point = /*#__PURE__*/function () {
"use strict";
@@ -44,7 +48,3 @@ var Point = /*#__PURE__*/function () {
}]);
return Point;
}();
var _x = babelHelpers.classPrivateFieldLooseKey("x");
var _y = babelHelpers.classPrivateFieldLooseKey("y");

View File

@@ -1,5 +1,7 @@
var foo = "bar";
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = function Foo() {
"use strict";
@@ -10,5 +12,3 @@ var Foo = function Foo() {
});
var _foo = "foo";
};
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");

View File

@@ -1,3 +1,5 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x");
var C = function C() {
"use strict";
@@ -9,8 +11,6 @@ var C = function C() {
});
};
var _x = babelHelpers.classPrivateFieldLooseKey("x");
expect(() => {
new C();
}).toThrow();

View File

@@ -1,3 +1,5 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = /*#__PURE__*/function (_Bar) {
"use strict";
@@ -29,5 +31,3 @@ var Foo = /*#__PURE__*/function (_Bar) {
return Foo;
}(Bar);
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");

View File

@@ -1,3 +1,5 @@
var _prop = babelHelpers.classPrivateFieldLooseKey("prop");
var Foo = function Foo() {
"use strict";
@@ -8,7 +10,7 @@ var Foo = function Foo() {
});
};
var _prop = babelHelpers.classPrivateFieldLooseKey("prop");
var _prop2 = babelHelpers.classPrivateFieldLooseKey("prop");
var Bar = /*#__PURE__*/function (_Foo) {
"use strict";
@@ -31,5 +33,3 @@ var Bar = /*#__PURE__*/function (_Foo) {
return Bar;
}(Foo);
var _prop2 = babelHelpers.classPrivateFieldLooseKey("prop");

View File

@@ -1,3 +1,5 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) {
"use strict";
@@ -9,5 +11,3 @@ var Foo = function Foo(props) {
babelHelpers.classPrivateFieldLooseBase(this, _client)[_client] = 1;
[this.x = babelHelpers.classPrivateFieldLooseBase(this, _client)[_client], babelHelpers.classPrivateFieldLooseBase(this, _client)[_client], this.y = babelHelpers.classPrivateFieldLooseBase(this, _client)[_client]] = props;
};
var _client = babelHelpers.classPrivateFieldLooseKey("client");

View File

@@ -1,3 +1,5 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) {
"use strict";
@@ -8,5 +10,3 @@ var Foo = function Foo(props) {
});
[x, ...babelHelpers.classPrivateFieldLooseBase(this, _client)[_client]] = props;
};
var _client = babelHelpers.classPrivateFieldLooseKey("client");

View File

@@ -1,3 +1,5 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) {
"use strict";
@@ -8,5 +10,3 @@ var Foo = function Foo(props) {
});
[babelHelpers.classPrivateFieldLooseBase(this, _client)[_client] = 5] = props;
};
var _client = babelHelpers.classPrivateFieldLooseKey("client");

View File

@@ -1,3 +1,5 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) {
"use strict";
@@ -8,5 +10,3 @@ var Foo = function Foo(props) {
});
[babelHelpers.classPrivateFieldLooseBase(this, _client)[_client]] = props;
};
var _client = babelHelpers.classPrivateFieldLooseKey("client");

View File

@@ -1,3 +1,5 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) {
"use strict";
@@ -13,5 +15,3 @@ var Foo = function Foo(props) {
z: this.z = babelHelpers.classPrivateFieldLooseBase(this, _client)[_client]
} = props);
};
var _client = babelHelpers.classPrivateFieldLooseKey("client");

View File

@@ -1,3 +1,5 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) {
"use strict";
@@ -11,5 +13,3 @@ var Foo = function Foo(props) {
...babelHelpers.classPrivateFieldLooseBase(this, _client)[_client]
} = props);
};
var _client = babelHelpers.classPrivateFieldLooseKey("client");

View File

@@ -1,3 +1,5 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) {
"use strict";
@@ -10,5 +12,3 @@ var Foo = function Foo(props) {
client: babelHelpers.classPrivateFieldLooseBase(this, _client)[_client] = 5
} = props);
};
var _client = babelHelpers.classPrivateFieldLooseKey("client");

View File

@@ -1,3 +1,5 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) {
"use strict";
@@ -10,5 +12,3 @@ var Foo = function Foo(props) {
client: babelHelpers.classPrivateFieldLooseBase(this, _client)[_client]
} = props);
};
var _client = babelHelpers.classPrivateFieldLooseKey("client");

View File

@@ -1,5 +1,9 @@
var foo = "bar";
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
var _baz = babelHelpers.classPrivateFieldLooseKey("baz");
var Foo = function Foo(_foo) {
"use strict";
@@ -13,7 +17,3 @@ var Foo = function Foo(_foo) {
value: foo
});
};
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
var _baz = babelHelpers.classPrivateFieldLooseKey("baz");

View File

@@ -1,3 +1,5 @@
var _scopedFunctionWithThis = babelHelpers.classPrivateFieldLooseKey("scopedFunctionWithThis");
var Child = /*#__PURE__*/function (_Parent) {
"use strict";
@@ -21,5 +23,3 @@ var Child = /*#__PURE__*/function (_Parent) {
return Child;
}(Parent);
var _scopedFunctionWithThis = babelHelpers.classPrivateFieldLooseKey("scopedFunctionWithThis");

View File

@@ -1,3 +1,5 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = function Foo() {
"use strict";
@@ -7,5 +9,3 @@ var Foo = function Foo() {
value: void 0
});
};
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");

View File

@@ -1,3 +1,5 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = function Foo() {
"use strict";
@@ -7,5 +9,3 @@ var Foo = function Foo() {
value: "foo"
});
};
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");

View File

@@ -1,3 +1,7 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x");
var _y = babelHelpers.classPrivateFieldLooseKey("y");
var Foo = function Foo() {
"use strict";
@@ -11,7 +15,3 @@ var Foo = function Foo() {
value: babelHelpers.classPrivateFieldLooseBase(this, _x)[_x]
});
};
var _x = babelHelpers.classPrivateFieldLooseKey("x");
var _y = babelHelpers.classPrivateFieldLooseKey("y");

View File

@@ -1,3 +1,7 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
class Foo {
constructor() {
Object.defineProperty(this, _bar, {
@@ -16,10 +20,6 @@ class Foo {
}
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
Object.defineProperty(Foo, _foo, {
writable: true,
value: "foo"

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -14,6 +16,8 @@ var Foo = /*#__PURE__*/function () {
value: function test() {
var _babelHelpers$classPr;
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
_babelHelpers$classPr = babelHelpers.classPrivateFieldLooseBase(this, _foo2)[_foo2];
var Nested = /*#__PURE__*/function () {
@@ -32,12 +36,8 @@ var Foo = /*#__PURE__*/function () {
return Nested;
}();
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo];
}
}]);
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -31,5 +33,3 @@ var Foo = /*#__PURE__*/function () {
}]);
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -12,10 +14,12 @@ var Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{
key: "test",
value: function test() {
var _temp, _foo3;
var _foo3, _temp;
var _babelHelpers$classPr;
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
var Nested = /*#__PURE__*/function (_ref) {
babelHelpers.inherits(Nested, _ref);
@@ -34,7 +38,7 @@ var Foo = /*#__PURE__*/function () {
}
return Nested;
}((_temp = (_babelHelpers$classPr = babelHelpers.classPrivateFieldLooseBase(this, _foo3)[_foo3], /*#__PURE__*/function () {
}((_temp = (_foo3 = babelHelpers.classPrivateFieldLooseKey("foo"), _babelHelpers$classPr = babelHelpers.classPrivateFieldLooseBase(this, _foo3)[_foo3], /*#__PURE__*/function () {
function _class2() {
babelHelpers.classCallCheck(this, _class2);
Object.defineProperty(this, _foo3, {
@@ -45,12 +49,8 @@ var Foo = /*#__PURE__*/function () {
}
return _class2;
}()), _foo3 = babelHelpers.classPrivateFieldLooseKey("foo"), _temp));
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
}()), _temp));
}
}]);
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -16,6 +18,8 @@ var Foo = /*#__PURE__*/function () {
var _babelHelpers$classPr;
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
var Nested = /*#__PURE__*/function (_ref) {
babelHelpers.inherits(Nested, _ref);
@@ -42,11 +46,7 @@ var Foo = /*#__PURE__*/function () {
return _class2;
}()), _temp));
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
}
}]);
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@@ -1,3 +1,7 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -16,6 +20,8 @@ var Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{
key: "test",
value: function test() {
var _bar2 = babelHelpers.classPrivateFieldLooseKey("bar");
var Nested = /*#__PURE__*/function () {
function Nested() {
babelHelpers.classCallCheck(this, Nested);
@@ -35,15 +41,9 @@ var Foo = /*#__PURE__*/function () {
return Nested;
}();
var _bar2 = babelHelpers.classPrivateFieldLooseKey("bar");
babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo];
babelHelpers.classPrivateFieldLooseBase(this, _bar)[_bar];
}
}]);
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -12,6 +14,8 @@ var Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{
key: "test",
value: function test() {
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
var Nested = /*#__PURE__*/function () {
function Nested() {
babelHelpers.classCallCheck(this, Nested);
@@ -30,12 +34,8 @@ var Foo = /*#__PURE__*/function () {
return Nested;
}();
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo];
}
}]);
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -31,5 +33,3 @@ var Foo = /*#__PURE__*/function () {
}]);
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@@ -1,12 +1,12 @@
export default (param => {
var _class, _temp, _props;
var _class, _props, _temp;
return _temp = _class = class App {
return _temp = (_props = babelHelpers.classPrivateFieldLooseKey("props"), _class = class App {
getParam() {
return param;
}
}, _props = babelHelpers.classPrivateFieldLooseKey("props"), Object.defineProperty(_class, _props, {
}), Object.defineProperty(_class, _props, {
writable: true,
value: {
prop1: 'prop1',

View File

@@ -1,3 +1,5 @@
var _outer = babelHelpers.classPrivateFieldLooseKey("outer");
var Outer = function Outer() {
"use strict";
@@ -20,5 +22,3 @@ var Outer = function Outer() {
return Test;
}(babelHelpers.classPrivateFieldLooseBase(this, _outer)[_outer]);
};
var _outer = babelHelpers.classPrivateFieldLooseKey("outer");

View File

@@ -1,7 +1,7 @@
function classFactory() {
var _class, _temp, _foo, _bar;
var _class, _foo, _bar, _temp;
return _temp = _class = class Foo {
return _temp = (_foo = babelHelpers.classPrivateFieldLooseKey("foo"), _bar = babelHelpers.classPrivateFieldLooseKey("bar"), _class = class Foo {
constructor() {
Object.defineProperty(this, _foo, {
writable: true,
@@ -25,7 +25,7 @@ function classFactory() {
return babelHelpers.classPrivateFieldLooseBase(Foo, _bar)[_bar];
}
}, _foo = babelHelpers.classPrivateFieldLooseKey("foo"), _bar = babelHelpers.classPrivateFieldLooseKey("bar"), Object.defineProperty(_class, _bar, {
}), Object.defineProperty(_class, _bar, {
writable: true,
value: "bar"
}), _temp;

View File

@@ -1,3 +1,9 @@
var _two = babelHelpers.classPrivateFieldLooseKey("two");
var _private = babelHelpers.classPrivateFieldLooseKey("private");
var _four = babelHelpers.classPrivateFieldLooseKey("four");
var Foo = function Foo() {
"use strict";
@@ -17,9 +23,3 @@ var Foo = function Foo() {
value: babelHelpers.classPrivateFieldLooseBase(this, _private)[_private]
});
};
var _two = babelHelpers.classPrivateFieldLooseKey("two");
var _private = babelHelpers.classPrivateFieldLooseKey("private");
var _four = babelHelpers.classPrivateFieldLooseKey("four");

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -14,8 +16,6 @@ var Foo = /*#__PURE__*/function () {
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
Object.defineProperty(Foo, _foo, {
writable: true,
value: function (x) {

View File

@@ -1,15 +1,14 @@
export class MyClass {}
var _property = babelHelpers.classPrivateFieldLooseKey("property");
export class MyClass {}
Object.defineProperty(MyClass, _property, {
writable: true,
value: value
});
export default class MyClass2 {}
var _property2 = babelHelpers.classPrivateFieldLooseKey("property");
export default class MyClass2 {}
Object.defineProperty(MyClass2, _property2, {
writable: true,
value: value

View File

@@ -1,6 +1,6 @@
var _class, _temp, _num;
var _class, _num, _temp;
var Foo = (_temp = _class = class Foo {}, _num = babelHelpers.classPrivateFieldLooseKey("num"), Object.defineProperty(_class, _num, {
var Foo = (_temp = (_num = babelHelpers.classPrivateFieldLooseKey("num"), _class = class Foo {}), Object.defineProperty(_class, _num, {
writable: true,
value: 0
}), _temp);

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
class Base {
static getThis() {
return babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo];
@@ -17,13 +19,13 @@ class Base {
}
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
Object.defineProperty(Base, _foo, {
writable: true,
value: 1
});
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
class Sub1 extends Base {
static update(val) {
return babelHelpers.classPrivateFieldLooseBase(this, _foo2)[_foo2] = val;
@@ -31,8 +33,6 @@ class Sub1 extends Base {
}
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
Object.defineProperty(Sub1, _foo2, {
writable: true,
value: 2

View File

@@ -1,13 +1,13 @@
var _self = babelHelpers.classPrivateFieldLooseKey("self");
var _getA = babelHelpers.classPrivateFieldLooseKey("getA");
var A = function A() {
"use strict";
babelHelpers.classCallCheck(this, A);
};
var _self = babelHelpers.classPrivateFieldLooseKey("self");
var _getA = babelHelpers.classPrivateFieldLooseKey("getA");
Object.defineProperty(A, _self, {
writable: true,
value: A

View File

@@ -1,3 +1,5 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
class Foo {
static test() {
return babelHelpers.classPrivateFieldLooseBase(Foo, _bar)[_bar];
@@ -9,8 +11,6 @@ class Foo {
}
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
Object.defineProperty(Foo, _bar, {
writable: true,
value: void 0

View File

@@ -1,3 +1,5 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
class Foo {
static test() {
return babelHelpers.classPrivateFieldLooseBase(Foo, _bar)[_bar];
@@ -9,8 +11,6 @@ class Foo {
}
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
Object.defineProperty(Foo, _bar, {
writable: true,
value: "foo"

View File

@@ -1,3 +1,5 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = /*#__PURE__*/function (_Bar) {
"use strict";
@@ -18,5 +20,3 @@ var Foo = /*#__PURE__*/function (_Bar) {
return Foo;
}(Bar);
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");

View File

@@ -1,3 +1,5 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = /*#__PURE__*/function (_Bar) {
"use strict";
@@ -19,5 +21,3 @@ var Foo = /*#__PURE__*/function (_Bar) {
return Foo;
}(Bar);
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");

View File

@@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -20,5 +22,3 @@ var Foo = /*#__PURE__*/function () {
}]);
return Foo;
}();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@@ -1,3 +1,5 @@
var _foo = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -23,5 +25,3 @@ var Foo = /*#__PURE__*/function () {
}]);
return Foo;
}();
var _foo = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _foo = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -23,5 +25,3 @@ var Foo = /*#__PURE__*/function () {
}]);
return Foo;
}();
var _foo = new WeakMap();

View File

@@ -1,3 +1,7 @@
var _x = new WeakMap();
var _y = new WeakMap();
var Point = /*#__PURE__*/function () {
"use strict";
@@ -47,7 +51,3 @@ var Point = /*#__PURE__*/function () {
}]);
return Point;
}();
var _x = new WeakMap();
var _y = new WeakMap();

View File

@@ -1,5 +1,7 @@
var foo = "bar";
var _bar = new WeakMap();
var Foo = function Foo() {
"use strict";
@@ -12,5 +14,3 @@ var Foo = function Foo() {
var _foo = "foo";
};
var _bar = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _x = new WeakMap();
var C = function C() {
"use strict";
@@ -10,8 +12,6 @@ var C = function C() {
});
};
var _x = new WeakMap();
expect(() => {
new C();
}).toThrow();

View File

@@ -1,3 +1,5 @@
var _bar = new WeakMap();
var Foo = /*#__PURE__*/function (_Bar) {
"use strict";
@@ -31,5 +33,3 @@ var Foo = /*#__PURE__*/function (_Bar) {
return Foo;
}(Bar);
var _bar = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _prop = new WeakMap();
var Foo = function Foo() {
"use strict";
@@ -9,7 +11,7 @@ var Foo = function Foo() {
});
};
var _prop = new WeakMap();
var _prop2 = new WeakMap();
var Bar = /*#__PURE__*/function (_Foo) {
"use strict";
@@ -34,5 +36,3 @@ var Bar = /*#__PURE__*/function (_Foo) {
return Bar;
}(Foo);
var _prop2 = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _client = new WeakMap();
var Foo = function Foo(props) {
"use strict";
@@ -11,5 +13,3 @@ var Foo = function Foo(props) {
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();

View File

@@ -1,3 +1,5 @@
var _client = new WeakMap();
var Foo = function Foo(props) {
"use strict";
@@ -10,5 +12,3 @@ var Foo = function Foo(props) {
[x, ...babelHelpers.classPrivateFieldDestructureSet(this, _client).value] = props;
};
var _client = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _client = new WeakMap();
var Foo = function Foo(props) {
"use strict";
@@ -10,5 +12,3 @@ var Foo = function Foo(props) {
[babelHelpers.classPrivateFieldDestructureSet(this, _client).value = 5] = props;
};
var _client = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _client = new WeakMap();
var Foo = function Foo(props) {
"use strict";
@@ -10,5 +12,3 @@ var Foo = function Foo(props) {
[babelHelpers.classPrivateFieldDestructureSet(this, _client).value] = props;
};
var _client = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _client = new WeakMap();
var Foo = function Foo(props) {
"use strict";
@@ -15,5 +17,3 @@ var Foo = function Foo(props) {
z: this.z = babelHelpers.classPrivateFieldGet(this, _client)
} = props);
};
var _client = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _client = new WeakMap();
var Foo = function Foo(props) {
"use strict";
@@ -13,5 +15,3 @@ var Foo = function Foo(props) {
...babelHelpers.classPrivateFieldDestructureSet(this, _client).value
} = props);
};
var _client = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _client = new WeakMap();
var Foo = function Foo(props) {
"use strict";
@@ -12,5 +14,3 @@ var Foo = function Foo(props) {
x: babelHelpers.classPrivateFieldDestructureSet(this, _client).value = 5
} = props);
};
var _client = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _client = new WeakMap();
var Foo = function Foo(props) {
"use strict";
@@ -12,5 +14,3 @@ var Foo = function Foo(props) {
client: babelHelpers.classPrivateFieldDestructureSet(this, _client).value
} = props);
};
var _client = new WeakMap();

View File

@@ -1,5 +1,9 @@
var foo = "bar";
var _bar = new WeakMap();
var _baz = new WeakMap();
var Foo = function Foo(_foo) {
"use strict";
@@ -15,7 +19,3 @@ var Foo = function Foo(_foo) {
value: foo
});
};
var _bar = new WeakMap();
var _baz = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _scopedFunctionWithThis = new WeakMap();
var Child = /*#__PURE__*/function (_Parent) {
"use strict";
@@ -23,5 +25,3 @@ var Child = /*#__PURE__*/function (_Parent) {
return Child;
}(Parent);
var _scopedFunctionWithThis = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _bar = new WeakMap();
var Foo = function Foo() {
"use strict";
@@ -8,5 +10,3 @@ var Foo = function Foo() {
value: void 0
});
};
var _bar = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _bar = new WeakMap();
var Foo = function Foo() {
"use strict";
@@ -8,5 +10,3 @@ var Foo = function Foo() {
value: "foo"
});
};
var _bar = new WeakMap();

View File

@@ -1,3 +1,7 @@
var _x = new WeakMap();
var _y = new WeakMap();
var Foo = function Foo() {
"use strict";
@@ -13,7 +17,3 @@ var Foo = function Foo() {
value: babelHelpers.classPrivateFieldGet(this, _x)
});
};
var _x = new WeakMap();
var _y = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _bar = new WeakMap();
class Foo {
constructor() {
_bar.set(this, {
@@ -16,8 +18,6 @@ class Foo {
}
var _bar = new WeakMap();
var _foo = {
writable: true,
value: "foo"

View File

@@ -1,3 +1,5 @@
var _foo = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -15,6 +17,8 @@ var Foo = /*#__PURE__*/function () {
value: function test() {
var _babelHelpers$classPr;
var _foo2 = new WeakMap();
_babelHelpers$classPr = babelHelpers.classPrivateFieldGet(this, _foo2);
var Nested = /*#__PURE__*/function () {
@@ -34,12 +38,8 @@ var Foo = /*#__PURE__*/function () {
return Nested;
}();
var _foo2 = new WeakMap();
babelHelpers.classPrivateFieldGet(this, _foo);
}
}]);
return Foo;
}();
var _foo = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _foo = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -32,5 +34,3 @@ var Foo = /*#__PURE__*/function () {
}]);
return Foo;
}();
var _foo = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _foo = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -13,10 +15,12 @@ var Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{
key: "test",
value: function test() {
var _temp, _foo3;
var _foo3, _temp;
var _babelHelpers$classPr;
var _foo2 = new WeakMap();
var Nested = /*#__PURE__*/function (_ref) {
babelHelpers.inherits(Nested, _ref);
@@ -37,7 +41,7 @@ var Foo = /*#__PURE__*/function () {
}
return Nested;
}((_temp = (_babelHelpers$classPr = babelHelpers.classPrivateFieldGet(this, _foo3), /*#__PURE__*/function () {
}((_temp = (_foo3 = new WeakMap(), _babelHelpers$classPr = babelHelpers.classPrivateFieldGet(this, _foo3), /*#__PURE__*/function () {
function _class2() {
babelHelpers.classCallCheck(this, _class2);
@@ -50,12 +54,8 @@ var Foo = /*#__PURE__*/function () {
}
return _class2;
}()), _foo3 = new WeakMap(), _temp));
var _foo2 = new WeakMap();
}()), _temp));
}
}]);
return Foo;
}();
var _foo = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _foo = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -17,6 +19,8 @@ var Foo = /*#__PURE__*/function () {
var _babelHelpers$classPr;
var _foo2 = new WeakMap();
var Nested = /*#__PURE__*/function (_ref) {
babelHelpers.inherits(Nested, _ref);
@@ -45,11 +49,7 @@ var Foo = /*#__PURE__*/function () {
return _class2;
}()), _temp));
var _foo2 = new WeakMap();
}
}]);
return Foo;
}();
var _foo = new WeakMap();

View File

@@ -1,3 +1,7 @@
var _foo = new WeakMap();
var _bar = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -18,6 +22,8 @@ var Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{
key: "test",
value: function test() {
var _bar2 = new WeakMap();
var Nested = /*#__PURE__*/function () {
function Nested() {
babelHelpers.classCallCheck(this, Nested);
@@ -38,15 +44,9 @@ var Foo = /*#__PURE__*/function () {
return Nested;
}();
var _bar2 = new WeakMap();
babelHelpers.classPrivateFieldGet(this, _foo);
babelHelpers.classPrivateFieldGet(this, _bar);
}
}]);
return Foo;
}();
var _foo = new WeakMap();
var _bar = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _foo = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -13,6 +15,8 @@ var Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{
key: "test",
value: function test() {
var _foo2 = new WeakMap();
var Nested = /*#__PURE__*/function () {
function Nested() {
babelHelpers.classCallCheck(this, Nested);
@@ -32,12 +36,8 @@ var Foo = /*#__PURE__*/function () {
return Nested;
}();
var _foo2 = new WeakMap();
babelHelpers.classPrivateFieldGet(this, _foo);
}
}]);
return Foo;
}();
var _foo = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _foo = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -32,5 +34,3 @@ var Foo = /*#__PURE__*/function () {
}]);
return Foo;
}();
var _foo = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _outer = new WeakMap();
var Outer = function Outer() {
"use strict";
@@ -21,5 +23,3 @@ var Outer = function Outer() {
return Test;
}(babelHelpers.classPrivateFieldGet(this, _outer));
};
var _outer = new WeakMap();

View File

@@ -1,7 +1,7 @@
function classFactory() {
var _class, _temp, _foo, _bar;
var _class, _foo, _temp, _bar;
return _temp = _class = class Foo {
return _temp = (_foo = new WeakMap(), _class = class Foo {
constructor() {
_foo.set(this, {
writable: true,
@@ -25,7 +25,7 @@ function classFactory() {
return babelHelpers.classStaticPrivateFieldSpecGet(Foo, _class, _bar);
}
}, _foo = new WeakMap(), _bar = {
}), _bar = {
writable: true,
value: "bar"
}, _temp;

View File

@@ -1,3 +1,9 @@
var _two = new WeakMap();
var _private = new WeakMap();
var _four = new WeakMap();
var Foo = function Foo() {
"use strict";
@@ -21,9 +27,3 @@ var Foo = function Foo() {
value: babelHelpers.classPrivateFieldGet(this, _private)
});
};
var _two = new WeakMap();
var _private = new WeakMap();
var _four = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _myAsyncMethod = new WeakMap();
class MyClass {
constructor() {
var _this = this;
@@ -18,7 +20,7 @@ class MyClass {
}
var _myAsyncMethod = new WeakMap();
var _myAsyncMethod2 = new WeakMap();
(class MyClass2 {
constructor() {
@@ -40,7 +42,7 @@ var _myAsyncMethod = new WeakMap();
});
var _myAsyncMethod2 = new WeakMap();
var _myAsyncMethod3 = new WeakMap();
export default class MyClass3 {
constructor() {
@@ -61,5 +63,3 @@ export default class MyClass3 {
}
}
var _myAsyncMethod3 = new WeakMap();

View File

@@ -14,6 +14,8 @@ var A = /*#__PURE__*/function () {
return A;
}();
var _foo = new WeakMap();
var B = /*#__PURE__*/function (_A) {
"use strict";
@@ -37,5 +39,3 @@ var B = /*#__PURE__*/function (_A) {
return B;
}(A);
var _foo = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _bar = new WeakMap();
var Foo = /*#__PURE__*/function (_Bar) {
"use strict";
@@ -18,5 +20,3 @@ var Foo = /*#__PURE__*/function (_Bar) {
return Foo;
}(Bar);
var _bar = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _bar = new WeakMap();
var Foo = /*#__PURE__*/function (_Bar) {
"use strict";
@@ -21,5 +23,3 @@ var Foo = /*#__PURE__*/function (_Bar) {
return Foo;
}(Bar);
var _bar = new WeakMap();

View File

@@ -1,3 +1,5 @@
var _foo = new WeakMap();
var Foo = /*#__PURE__*/function () {
"use strict";
@@ -23,5 +25,3 @@ var Foo = /*#__PURE__*/function () {
}]);
return Foo;
}();
var _foo = new WeakMap();

View File

@@ -1,11 +1,11 @@
const classes = [];
for (let i = 0; i <= 10; ++i) {
var _class, _temp, _bar;
var _class, _bar, _temp;
let _i;
classes.push((_temp = (_i = i, _class = class A {
classes.push((_temp = (_bar = new WeakMap(), _i = i, _class = class A {
constructor() {
babelHelpers.defineProperty(this, _i, `computed field ${i}`);
@@ -19,5 +19,5 @@ for (let i = 0; i <= 10; ++i) {
return babelHelpers.classPrivateFieldGet(this, _bar);
}
}), _bar = new WeakMap(), babelHelpers.defineProperty(_class, "foo", `static field ${i}`), _temp));
}), babelHelpers.defineProperty(_class, "foo", `static field ${i}`), _temp));
}