Mark WeakMaps of private fields as pure (#13194)

This commit is contained in:
Nicolò Ribaudo 2021-04-23 22:12:55 +02:00
parent b4c21c729f
commit f30c99aa24
242 changed files with 378 additions and 368 deletions

View File

@ -18,6 +18,7 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"@babel/helper-annotate-as-pure": "workspace:^7.12.13",
"@babel/helper-function-name": "workspace:^7.12.13", "@babel/helper-function-name": "workspace:^7.12.13",
"@babel/helper-member-expression-to-functions": "workspace:^7.13.0", "@babel/helper-member-expression-to-functions": "workspace:^7.13.0",
"@babel/helper-optimise-call-expression": "workspace:^7.12.13", "@babel/helper-optimise-call-expression": "workspace:^7.12.13",

View File

@ -4,6 +4,7 @@ import ReplaceSupers, {
} from "@babel/helper-replace-supers"; } from "@babel/helper-replace-supers";
import memberExpressionToFunctions from "@babel/helper-member-expression-to-functions"; import memberExpressionToFunctions from "@babel/helper-member-expression-to-functions";
import optimiseCall from "@babel/helper-optimise-call-expression"; import optimiseCall from "@babel/helper-optimise-call-expression";
import annotateAsPure from "@babel/helper-annotate-as-pure";
import * as ts from "./typescript"; import * as ts from "./typescript";
@ -53,20 +54,23 @@ export function buildPrivateNamesNodes(
const { static: isStatic, method: isMethod, getId, setId } = value; const { static: isStatic, method: isMethod, getId, setId } = value;
const isAccessor = getId || setId; const isAccessor = getId || setId;
const id = t.cloneNode(value.id); const id = t.cloneNode(value.id);
let init;
if (privateFieldsAsProperties) { if (privateFieldsAsProperties) {
initNodes.push( init = t.callExpression(state.addHelper("classPrivateFieldLooseKey"), [
template.statement.ast` t.stringLiteral(name),
var ${id} = ${state.addHelper("classPrivateFieldLooseKey")}("${name}") ]);
`,
);
} else if (isMethod && !isStatic) {
if (isAccessor) {
initNodes.push(template.statement.ast`var ${id} = new WeakMap();`);
} else {
initNodes.push(template.statement.ast`var ${id} = new WeakSet();`);
}
} else if (!isStatic) { } else if (!isStatic) {
initNodes.push(template.statement.ast`var ${id} = new WeakMap();`); init = t.newExpression(
t.identifier(!isMethod || isAccessor ? "WeakMap" : "WeakSet"),
[],
);
}
if (init) {
annotateAsPure(init);
initNodes.push(template.statement.ast`var ${id} = ${init}`);
} }
} }

View File

@ -1,4 +1,4 @@
var _privateMethod = new WeakSet(); var _privateMethod = /*#__PURE__*/new WeakSet();
class X { class X {
constructor() { constructor() {

View File

@ -1,4 +1,4 @@
var _privateMethod = babelHelpers.classPrivateFieldLooseKey("privateMethod"); var _privateMethod = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("privateMethod");
class X { class X {
constructor() { constructor() {

View File

@ -1,4 +1,4 @@
var _foo = new WeakSet(); var _foo = /*#__PURE__*/new WeakSet();
class A extends B { class A extends B {
constructor(...args) { constructor(...args) {

View File

@ -1,4 +1,4 @@
var _m = new WeakMap(); var _m = /*#__PURE__*/new WeakMap();
class C { class C {
constructor() { constructor() {

View File

@ -1,4 +1,4 @@
var _m = new WeakMap(); var _m = /*#__PURE__*/new WeakMap();
class C { class C {
constructor() { constructor() {

View File

@ -1,4 +1,4 @@
var _g = new WeakSet(); var _g = /*#__PURE__*/new WeakSet();
class C { class C {
constructor() { constructor() {

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,6 +1,6 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _y = babelHelpers.classPrivateFieldLooseKey("y"); var _y = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("y");
var Point = /*#__PURE__*/function () { var Point = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,6 +1,6 @@
var foo = "bar"; var foo = "bar";
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = function Foo() { var Foo = function Foo() {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var C = function C() { var C = function C() {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = /*#__PURE__*/function (_Bar) { var Foo = /*#__PURE__*/function (_Bar) {
"use strict"; "use strict";

View File

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

View File

@ -1,4 +1,4 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client"); var _client = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client"); var _client = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client"); var _client = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client"); var _client = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client"); var _client = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client"); var _client = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client"); var _client = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client"); var _client = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client"); var _client = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = babelHelpers.classPrivateFieldLooseKey("client"); var _client = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("client");
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,8 +1,8 @@
var foo = "bar"; var foo = "bar";
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
var _baz = babelHelpers.classPrivateFieldLooseKey("baz"); var _baz = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("baz");
var Foo = function Foo(_foo) { var Foo = function Foo(_foo) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _scopedFunctionWithThis = babelHelpers.classPrivateFieldLooseKey("scopedFunctionWithThis"); var _scopedFunctionWithThis = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("scopedFunctionWithThis");
var Child = /*#__PURE__*/function (_Parent) { var Child = /*#__PURE__*/function (_Parent) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = function Foo() { var Foo = function Foo() {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = function Foo() { var Foo = function Foo() {
"use strict"; "use strict";

View File

@ -1,8 +1,8 @@
var _nullish = babelHelpers.classPrivateFieldLooseKey("nullish"); var _nullish = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("nullish");
var _and = babelHelpers.classPrivateFieldLooseKey("and"); var _and = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("and");
var _or = babelHelpers.classPrivateFieldLooseKey("or"); var _or = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("or");
class Foo { class Foo {
constructor() { constructor() {

View File

@ -1,6 +1,6 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _y = babelHelpers.classPrivateFieldLooseKey("y"); var _y = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("y");
var Foo = function Foo() { var Foo = function Foo() {
"use strict"; "use strict";

View File

@ -1,6 +1,6 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
class Foo { class Foo {
constructor() { constructor() {

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -16,7 +16,7 @@ var Foo = /*#__PURE__*/function () {
value: function test() { value: function test() {
var _babelHelpers$classPr; var _babelHelpers$classPr;
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo2 = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
_babelHelpers$classPr = babelHelpers.classPrivateFieldLooseBase(this, _foo2)[_foo2]; _babelHelpers$classPr = babelHelpers.classPrivateFieldLooseBase(this, _foo2)[_foo2];

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -18,7 +18,7 @@ var Foo = /*#__PURE__*/function () {
var _babelHelpers$classPr; var _babelHelpers$classPr;
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo2 = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Nested = /*#__PURE__*/function (_ref) { var Nested = /*#__PURE__*/function (_ref) {
babelHelpers.inherits(Nested, _ref); babelHelpers.inherits(Nested, _ref);
@ -38,7 +38,7 @@ var Foo = /*#__PURE__*/function () {
} }
return Nested; return Nested;
}((_foo3 = babelHelpers.classPrivateFieldLooseKey("foo"), _babelHelpers$classPr = babelHelpers.classPrivateFieldLooseBase(this, _foo3)[_foo3], /*#__PURE__*/function () { }((_foo3 = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo"), _babelHelpers$classPr = babelHelpers.classPrivateFieldLooseBase(this, _foo3)[_foo3], /*#__PURE__*/function () {
function _class2() { function _class2() {
babelHelpers.classCallCheck(this, _class2); babelHelpers.classCallCheck(this, _class2);
Object.defineProperty(this, _foo3, { Object.defineProperty(this, _foo3, {

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -16,7 +16,7 @@ var Foo = /*#__PURE__*/function () {
value: function test() { value: function test() {
var _babelHelpers$classPr; var _babelHelpers$classPr;
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo2 = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Nested = /*#__PURE__*/function (_ref) { var Nested = /*#__PURE__*/function (_ref) {
babelHelpers.inherits(Nested, _ref); babelHelpers.inherits(Nested, _ref);

View File

@ -1,6 +1,6 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -20,7 +20,7 @@ var Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{ babelHelpers.createClass(Foo, [{
key: "test", key: "test",
value: function test() { value: function test() {
var _bar2 = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar2 = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
var Nested = /*#__PURE__*/function () { var Nested = /*#__PURE__*/function () {
function Nested() { function Nested() {

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -14,7 +14,7 @@ var Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{ babelHelpers.createClass(Foo, [{
key: "test", key: "test",
value: function test() { value: function test() {
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo2 = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Nested = /*#__PURE__*/function () { var Nested = /*#__PURE__*/function () {
function Nested() { function Nested() {

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,7 +1,7 @@
export default (param => { export default (param => {
var _class, _props, _temp; var _class, _props, _temp;
return _temp = (_props = babelHelpers.classPrivateFieldLooseKey("props"), _class = class App { return _temp = (_props = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("props"), _class = class App {
getParam() { getParam() {
return param; return param;
} }

View File

@ -1,8 +1,8 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _m = babelHelpers.classPrivateFieldLooseKey("m"); var _m = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("m");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,8 +1,8 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _m = babelHelpers.classPrivateFieldLooseKey("m"); var _m = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("m");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,6 +1,6 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,6 +1,6 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,4 +1,4 @@
var _a = babelHelpers.classPrivateFieldLooseKey("a"); var _a = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("a");
class C { class C {
static testIf(o) { static testIf(o) {

View File

@ -1,6 +1,6 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,6 +1,6 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,8 +1,8 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _m = babelHelpers.classPrivateFieldLooseKey("m"); var _m = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("m");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,8 +1,8 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _m = babelHelpers.classPrivateFieldLooseKey("m"); var _m = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("m");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,4 +1,4 @@
var _m = babelHelpers.classPrivateFieldLooseKey("m"); var _m = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("m");
class Foo { class Foo {
constructor() { constructor() {

View File

@ -1,8 +1,8 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _m = babelHelpers.classPrivateFieldLooseKey("m"); var _m = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("m");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,8 +1,8 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _m = babelHelpers.classPrivateFieldLooseKey("m"); var _m = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("m");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,8 +1,8 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _m = babelHelpers.classPrivateFieldLooseKey("m"); var _m = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("m");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,8 +1,8 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _m = babelHelpers.classPrivateFieldLooseKey("m"); var _m = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("m");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,6 +1,6 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,6 +1,6 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,6 +1,6 @@
var _x = babelHelpers.classPrivateFieldLooseKey("x"); var _x = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("x");
var _m = babelHelpers.classPrivateFieldLooseKey("m"); var _m = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("m");
class Foo { class Foo {
static getSelf() { static getSelf() {

View File

@ -1,4 +1,4 @@
var _outer = babelHelpers.classPrivateFieldLooseKey("outer"); var _outer = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("outer");
var Outer = function Outer() { var Outer = function Outer() {
"use strict"; "use strict";

View File

@ -1,7 +1,7 @@
function classFactory() { function classFactory() {
var _class, _foo, _bar, _temp; var _class, _foo, _bar, _temp;
return _temp = (_foo = babelHelpers.classPrivateFieldLooseKey("foo"), _bar = babelHelpers.classPrivateFieldLooseKey("bar"), _class = class Foo { return _temp = (_foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo"), _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar"), _class = class Foo {
constructor() { constructor() {
Object.defineProperty(this, _foo, { Object.defineProperty(this, _foo, {
writable: true, writable: true,

View File

@ -1,8 +1,8 @@
var _two = babelHelpers.classPrivateFieldLooseKey("two"); var _two = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("two");
var _private = babelHelpers.classPrivateFieldLooseKey("private"); var _private = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("private");
var _four = babelHelpers.classPrivateFieldLooseKey("four"); var _four = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("four");
var Foo = function Foo() { var Foo = function Foo() {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _property = babelHelpers.classPrivateFieldLooseKey("property"); var _property = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("property");
export class MyClass {} export class MyClass {}
Object.defineProperty(MyClass, _property, { Object.defineProperty(MyClass, _property, {
@ -6,7 +6,7 @@ Object.defineProperty(MyClass, _property, {
value: value value: value
}); });
var _property2 = babelHelpers.classPrivateFieldLooseKey("property"); var _property2 = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("property");
export default class MyClass2 {} export default class MyClass2 {}
Object.defineProperty(MyClass2, _property2, { Object.defineProperty(MyClass2, _property2, {

View File

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

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
class Base { class Base {
static getThis() { static getThis() {
@ -24,7 +24,7 @@ Object.defineProperty(Base, _foo, {
value: 1 value: 1
}); });
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo2 = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
class Sub1 extends Base { class Sub1 extends Base {
static update(val) { static update(val) {

View File

@ -1,6 +1,6 @@
var _self = babelHelpers.classPrivateFieldLooseKey("self"); var _self = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("self");
var _getA = babelHelpers.classPrivateFieldLooseKey("getA"); var _getA = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("getA");
var A = function A() { var A = function A() {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
class Foo { class Foo {
static test() { static test() {

View File

@ -1,4 +1,4 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
class Foo { class Foo {
static test() { static test() {

View File

@ -1,4 +1,4 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = /*#__PURE__*/function (_Bar) { var Foo = /*#__PURE__*/function (_Bar) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _bar = babelHelpers.classPrivateFieldLooseKey("bar"); var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
var Foo = /*#__PURE__*/function (_Bar) { var Foo = /*#__PURE__*/function (_Bar) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo"); var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _arr = new WeakMap(); var _arr = /*#__PURE__*/new WeakMap();
var D = /*#__PURE__*/function () { var D = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -23,7 +23,7 @@ var D = /*#__PURE__*/function () {
return D; return D;
}(); }();
var _p = new WeakMap(); var _p = /*#__PURE__*/new WeakMap();
var C = /*#__PURE__*/function () { var C = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -48,7 +48,7 @@ var C = /*#__PURE__*/function () {
return C; return C;
}(); }();
var _arr2 = new WeakMap(); var _arr2 = /*#__PURE__*/new WeakMap();
var E = /*#__PURE__*/function () { var E = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -73,7 +73,7 @@ var E = /*#__PURE__*/function () {
return E; return E;
}(); }();
var _ar = new WeakMap(); var _ar = /*#__PURE__*/new WeakMap();
var F = /*#__PURE__*/function () { var F = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _foo = new WeakMap(); var _foo = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _foo = new WeakMap(); var _foo = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,6 +1,6 @@
var _x = new WeakMap(); var _x = /*#__PURE__*/new WeakMap();
var _y = new WeakMap(); var _y = /*#__PURE__*/new WeakMap();
var Point = /*#__PURE__*/function () { var Point = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,6 +1,6 @@
var foo = "bar"; var foo = "bar";
var _bar = new WeakMap(); var _bar = /*#__PURE__*/new WeakMap();
var Foo = function Foo() { var Foo = function Foo() {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _x = new WeakMap(); var _x = /*#__PURE__*/new WeakMap();
var C = function C() { var C = function C() {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _bar = new WeakMap(); var _bar = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/function (_Bar) { var Foo = /*#__PURE__*/function (_Bar) {
"use strict"; "use strict";

View File

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

View File

@ -1,4 +1,4 @@
var _client = new WeakMap(); var _client = /*#__PURE__*/new WeakMap();
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = new WeakMap(); var _client = /*#__PURE__*/new WeakMap();
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = new WeakMap(); var _client = /*#__PURE__*/new WeakMap();
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = new WeakMap(); var _client = /*#__PURE__*/new WeakMap();
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = new WeakMap(); var _client = /*#__PURE__*/new WeakMap();
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = new WeakMap(); var _client = /*#__PURE__*/new WeakMap();
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = new WeakMap(); var _client = /*#__PURE__*/new WeakMap();
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _client = new WeakMap(); var _client = /*#__PURE__*/new WeakMap();
var Foo = function Foo(props) { var Foo = function Foo(props) {
"use strict"; "use strict";

View File

@ -1,8 +1,8 @@
var foo = "bar"; var foo = "bar";
var _bar = new WeakMap(); var _bar = /*#__PURE__*/new WeakMap();
var _baz = new WeakMap(); var _baz = /*#__PURE__*/new WeakMap();
var Foo = function Foo(_foo) { var Foo = function Foo(_foo) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _scopedFunctionWithThis = new WeakMap(); var _scopedFunctionWithThis = /*#__PURE__*/new WeakMap();
var Child = /*#__PURE__*/function (_Parent) { var Child = /*#__PURE__*/function (_Parent) {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _bar = new WeakMap(); var _bar = /*#__PURE__*/new WeakMap();
var Foo = function Foo() { var Foo = function Foo() {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _bar = new WeakMap(); var _bar = /*#__PURE__*/new WeakMap();
var Foo = function Foo() { var Foo = function Foo() {
"use strict"; "use strict";

View File

@ -1,8 +1,8 @@
var _nullish = new WeakMap(); var _nullish = /*#__PURE__*/new WeakMap();
var _and = new WeakMap(); var _and = /*#__PURE__*/new WeakMap();
var _or = new WeakMap(); var _or = /*#__PURE__*/new WeakMap();
class Foo { class Foo {
constructor() { constructor() {

View File

@ -1,6 +1,6 @@
var _x = new WeakMap(); var _x = /*#__PURE__*/new WeakMap();
var _y = new WeakMap(); var _y = /*#__PURE__*/new WeakMap();
var Foo = function Foo() { var Foo = function Foo() {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _bar = new WeakMap(); var _bar = /*#__PURE__*/new WeakMap();
class Foo { class Foo {
constructor() { constructor() {

View File

@ -1,4 +1,4 @@
var _foo = new WeakMap(); var _foo = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -17,7 +17,7 @@ var Foo = /*#__PURE__*/function () {
value: function test() { value: function test() {
var _babelHelpers$classPr; var _babelHelpers$classPr;
var _foo2 = new WeakMap(); var _foo2 = /*#__PURE__*/new WeakMap();
_babelHelpers$classPr = babelHelpers.classPrivateFieldGet(this, _foo2); _babelHelpers$classPr = babelHelpers.classPrivateFieldGet(this, _foo2);

View File

@ -1,4 +1,4 @@
var _foo = new WeakMap(); var _foo = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";

View File

@ -1,4 +1,4 @@
var _foo = new WeakMap(); var _foo = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -19,7 +19,7 @@ var Foo = /*#__PURE__*/function () {
var _babelHelpers$classPr; var _babelHelpers$classPr;
var _foo2 = new WeakMap(); var _foo2 = /*#__PURE__*/new WeakMap();
var Nested = /*#__PURE__*/function (_ref) { var Nested = /*#__PURE__*/function (_ref) {
babelHelpers.inherits(Nested, _ref); babelHelpers.inherits(Nested, _ref);
@ -41,7 +41,7 @@ var Foo = /*#__PURE__*/function () {
} }
return Nested; return Nested;
}((_foo3 = 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);

View File

@ -1,4 +1,4 @@
var _foo = new WeakMap(); var _foo = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -17,7 +17,7 @@ var Foo = /*#__PURE__*/function () {
value: function test() { value: function test() {
var _babelHelpers$classPr; var _babelHelpers$classPr;
var _foo2 = new WeakMap(); var _foo2 = /*#__PURE__*/new WeakMap();
var Nested = /*#__PURE__*/function (_ref) { var Nested = /*#__PURE__*/function (_ref) {
babelHelpers.inherits(Nested, _ref); babelHelpers.inherits(Nested, _ref);

View File

@ -1,6 +1,6 @@
var _foo = new WeakMap(); var _foo = /*#__PURE__*/new WeakMap();
var _bar = new WeakMap(); var _bar = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -22,7 +22,7 @@ var Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{ babelHelpers.createClass(Foo, [{
key: "test", key: "test",
value: function test() { value: function test() {
var _bar2 = new WeakMap(); var _bar2 = /*#__PURE__*/new WeakMap();
var Nested = /*#__PURE__*/function () { var Nested = /*#__PURE__*/function () {
function Nested() { function Nested() {

View File

@ -1,4 +1,4 @@
var _foo = new WeakMap(); var _foo = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -15,7 +15,7 @@ var Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{ babelHelpers.createClass(Foo, [{
key: "test", key: "test",
value: function test() { value: function test() {
var _foo2 = new WeakMap(); var _foo2 = /*#__PURE__*/new WeakMap();
var Nested = /*#__PURE__*/function () { var Nested = /*#__PURE__*/function () {
function Nested() { function Nested() {

View File

@ -1,4 +1,4 @@
var _foo = new WeakMap(); var _foo = /*#__PURE__*/new WeakMap();
var Foo = /*#__PURE__*/function () { var Foo = /*#__PURE__*/function () {
"use strict"; "use strict";

Some files were not shown because too many files have changed in this diff Show More