feat(es/compat): Add pure comments for class fields keys (#3939)

This commit is contained in:
Austaras 2022-03-10 15:13:58 +08:00 committed by GitHub
parent 9f72998821
commit 112f428734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
182 changed files with 921 additions and 746 deletions

View File

@ -189,14 +189,17 @@ impl<'a, 'b, P: swc_ecma_visit::Fold> PassBuilder<'a, 'b, P> {
let assumptions = self.assumptions;
Either::Right(chain!(
Optional::new(
compat::es2022::es2022(compat::es2022::Config {
class_properties: compat::es2022::class_properties::Config {
private_as_properties: assumptions.private_fields_as_properties,
constant_super: assumptions.constant_super,
set_public_fields: assumptions.set_public_class_fields,
no_document_all: assumptions.no_document_all
compat::es2022::es2022(
comments,
compat::es2022::Config {
class_properties: compat::es2022::class_properties::Config {
private_as_properties: assumptions.private_fields_as_properties,
constant_super: assumptions.constant_super,
set_public_fields: assumptions.set_public_class_fields,
no_document_all: assumptions.no_document_all
}
}
}),
),
should_enable(self.target, EsVersion::Es2022)
),
Optional::new(

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _name = new WeakMap();
var _name = /*#__PURE__*/ new WeakMap();
var Animal = /*#__PURE__*/ function() {
"use strict";
function Animal(name) {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _name = new WeakMap();
var _name = /*#__PURE__*/ new WeakMap();
var Animal = /*#__PURE__*/ function() {
"use strict";
function Animal(name) {

View File

@ -1,6 +1,6 @@
"use strict";
var swcHelpers = require("@swc/helpers");
var _ws = new WeakMap(), _ws2 = new WeakMap();
var _ws = /*#__PURE__*/ new WeakMap(), _ws2 = /*#__PURE__*/ new WeakMap();
class Foo {
get connected() {
return swcHelpers.classPrivateFieldGet(this, _ws2) && swcHelpers.classPrivateFieldGet(this, _ws).readyState === _ws1.default.OPEN;

View File

@ -12,28 +12,28 @@ const connectionStates = Object.keys(_ws.default);
var /**
* The serialization handler.
* @type {Serialization}
*/ _serialization1 = new WeakMap(), /**
*/ _serialization1 = /*#__PURE__*/ new WeakMap(), /**
* The compression handler.
* @type {Compression}
*/ _compression1 = new WeakMap(), /**
*/ _compression1 = /*#__PURE__*/ new WeakMap(), /**
* The current sequence.
* @type {number}
*/ _seq = new WeakMap(), /**
*/ _seq = /*#__PURE__*/ new WeakMap(), /**
* The shard sequence when the websocket last closed.
* @type {number}
*/ _closingSeq = new WeakMap(), /**
*/ _closingSeq = /*#__PURE__*/ new WeakMap(), /**
* The rate-limit bucket.
* @type {Bucket}
*/ _bucket = new WeakMap(), /**
*/ _bucket = /*#__PURE__*/ new WeakMap(), /**
* The rate-limit bucket for presence updates.
* @type {Bucket}
*/ _presenceBucket = new WeakMap(), /**
*/ _presenceBucket = /*#__PURE__*/ new WeakMap(), /**
* The current connection.
* @type {WebSocket}
*/ _ws1 = new WeakMap(), /**
*/ _ws1 = /*#__PURE__*/ new WeakMap(), /**
* Packets that are waiting to be sent.
* @type {DiscordPacket[]}
*/ _queue = new WeakMap();
*/ _queue = /*#__PURE__*/ new WeakMap();
class Shard extends _utils.Emitter {
/**
* The current sequence

View File

@ -17,7 +17,7 @@ const headers = [
var /**
* Used for sequential requests.
* @type {AsyncQueue}
*/ _queue = new WeakMap();
*/ _queue = /*#__PURE__*/ new WeakMap();
class RequestHandler {
/**
* Whether this handler is inactive or not.

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _get = new WeakSet();
var _get = /*#__PURE__*/ new WeakSet();
var MyClass = function MyClass() {
"use strict";
swcHelpers.classCallCheck(this, MyClass);

View File

@ -17,7 +17,7 @@ function _templateObject1() {
};
return data;
}
var _tag = new WeakSet(), _tag2 = new WeakMap();
var _tag = /*#__PURE__*/ new WeakSet(), _tag2 = /*#__PURE__*/ new WeakMap();
var Foo = function Foo() {
"use strict";
swcHelpers.classCallCheck(this, Foo);

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _link = new WeakSet();
var _link = /*#__PURE__*/ new WeakSet();
export class Node {
link() {
swcHelpers.classPrivateMethodGet(this, _link, link).call(this, this);

File diff suppressed because one or more lines are too long

View File

@ -51,7 +51,7 @@ const seq = {
source: ()=>new ArticleSourceSeqBuilder()
};
exports.seq = seq;
var _stages = new WeakMap(), _trustBox = new WeakMap(), _disclaimer = new WeakMap(), _articleSources = new WeakMap();
var _stages = /*#__PURE__*/ new WeakMap(), _trustBox = /*#__PURE__*/ new WeakMap(), _disclaimer = /*#__PURE__*/ new WeakMap(), _articleSources = /*#__PURE__*/ new WeakMap();
class BodyBuilder extends _abstractBuilders.AbstractBuilder {
stages(...stages) {
swcHelpers.classPrivateFieldSet(this, _stages, stages.map(_builderUtils.mapBuildArg));
@ -97,7 +97,7 @@ class BodyBuilder extends _abstractBuilders.AbstractBuilder {
});
}
}
var _nodes = new WeakMap(), _hidden = new WeakMap();
var _nodes = /*#__PURE__*/ new WeakMap(), _hidden = /*#__PURE__*/ new WeakMap();
class TrustBoxBuilder extends _abstractBuilders.AbstractBuilder {
nodes(nodes) {
swcHelpers.classPrivateFieldSet(this, _nodes, nodes.map(_builderUtils.mapBuildArg));
@ -125,7 +125,7 @@ class TrustBoxBuilder extends _abstractBuilders.AbstractBuilder {
});
}
}
var _element = new WeakMap();
var _element = /*#__PURE__*/ new WeakMap();
class OpenerBuilder extends _abstractBuilders.AbstractBuilder {
element(element) {
swcHelpers.classPrivateFieldSet(this, _element, (0, _builderUtils).mapBuildArg(element));
@ -144,7 +144,7 @@ class OpenerBuilder extends _abstractBuilders.AbstractBuilder {
});
}
}
var _nodes1 = new WeakMap(), _header = new WeakMap(), _companions = new WeakMap(), _commercialsEndOfStage = new WeakMap();
var _nodes1 = /*#__PURE__*/ new WeakMap(), _header = /*#__PURE__*/ new WeakMap(), _companions = /*#__PURE__*/ new WeakMap(), _commercialsEndOfStage = /*#__PURE__*/ new WeakMap();
class BodyStageSeqBuilder extends _abstractBuilders.AbstractSeqBuilder {
nodes(nodes) {
swcHelpers.classPrivateFieldSet(this, _nodes1, nodes.map(_builderUtils.mapBuildArgs));
@ -191,7 +191,7 @@ class BodyStageSeqBuilder extends _abstractBuilders.AbstractSeqBuilder {
});
}
}
var _seqBuilder = new WeakMap();
var _seqBuilder = /*#__PURE__*/ new WeakMap();
class BodyStageBuilder extends _abstractBuilders.AbstractBuilder {
nodes(nodes) {
swcHelpers.classPrivateFieldGet(this, _seqBuilder).nodes([
@ -230,7 +230,7 @@ class BodyStageBuilder extends _abstractBuilders.AbstractBuilder {
});
}
}
var _variant = new WeakMap(), _opener = new WeakMap();
var _variant = /*#__PURE__*/ new WeakMap(), _opener = /*#__PURE__*/ new WeakMap();
class BodyHeaderBuilder extends _abstractBuilders.AbstractBuilder {
variant(variant) {
swcHelpers.classPrivateFieldSet(this, _variant, variant);
@ -258,7 +258,7 @@ class BodyHeaderBuilder extends _abstractBuilders.AbstractBuilder {
});
}
}
var _nodes2 = new WeakMap();
var _nodes2 = /*#__PURE__*/ new WeakMap();
class ArticleSourceSeqBuilder extends _abstractBuilders.AbstractSeqBuilder {
nodes(nodes) {
swcHelpers.classPrivateFieldSet(this, _nodes2, nodes.map(_builderUtils.mapBuildArgs));
@ -279,7 +279,7 @@ class ArticleSourceSeqBuilder extends _abstractBuilders.AbstractSeqBuilder {
});
}
}
var _seqBuilder1 = new WeakMap();
var _seqBuilder1 = /*#__PURE__*/ new WeakMap();
class ArticleSourceBuilder extends _abstractBuilders.AbstractBuilder {
nodes(...nodes) {
swcHelpers.classPrivateFieldGet(this, _seqBuilder1).nodes([
@ -299,7 +299,7 @@ class ArticleSourceBuilder extends _abstractBuilders.AbstractBuilder {
this.nodes(...nodes);
}
}
var _nodes3 = new WeakMap(), _hidden1 = new WeakMap();
var _nodes3 = /*#__PURE__*/ new WeakMap(), _hidden1 = /*#__PURE__*/ new WeakMap();
class ArticleSourcesBuilder extends _abstractBuilders.AbstractBuilder {
nodes(...nodes) {
swcHelpers.classPrivateFieldSet(this, _nodes3, nodes.map(_builderUtils.mapBuildArg));

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
import * as swcHelpers from "@swc/helpers";
// @target: esnext, es2022, es2015
let getX;
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
class C {
constructor(x){
swcHelpers.classPrivateFieldInit(this, _x, {

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap();

View File

@ -1,7 +1,7 @@
import * as swcHelpers from "@swc/helpers";
// @target: esnext, es2022, es2015
var getX;
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
var C = function C(x) {
"use strict";
swcHelpers.classCallCheck(this, C);

View File

@ -1,7 +1,7 @@
import * as swcHelpers from "@swc/helpers";
// @target: es2015
let friendA;
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
class A {
getX() {
return swcHelpers.classPrivateFieldGet(this, _x);

View File

@ -1,7 +1,7 @@
import * as swcHelpers from "@swc/helpers";
// @target: es2015
var friendA;
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
var A = /*#__PURE__*/ function() {
"use strict";
function A(v) {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _value = new WeakMap();
var _value = /*#__PURE__*/ new WeakMap();
// @target: esnext
// @lib: esnext
// @declaration: true

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _value = new WeakMap();
var _value = /*#__PURE__*/ new WeakMap();
// @target: esnext
// @lib: esnext
// @declaration: true

View File

@ -10,7 +10,7 @@ var Generic;
}
var c = new C();
c.y = c.y;
var _value = new WeakMap();
var _value = /*#__PURE__*/ new WeakMap();
class Box {
get value() {
return swcHelpers.classPrivateFieldGet(this, _value);

View File

@ -20,7 +20,7 @@ var Generic;
}();
var c = new C();
c.y = c.y;
var _value = new WeakMap();
var _value = /*#__PURE__*/ new WeakMap();
var Box = /*#__PURE__*/ function() {
"use strict";
function Box() {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _hello = new WeakMap(), _world = new WeakMap(), _calcHello = new WeakSet(), _screamingHello = new WeakMap();
var _hello = /*#__PURE__*/ new WeakMap(), _world = /*#__PURE__*/ new WeakMap(), _calcHello = /*#__PURE__*/ new WeakSet(), _screamingHello = /*#__PURE__*/ new WeakMap();
// @target: esnext
// @allowJS: true
// @declaration: true

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _hello = new WeakMap(), _world = new WeakMap(), _calcHello = new WeakSet(), _screamingHello = new WeakMap();
var _hello = /*#__PURE__*/ new WeakMap(), _world = /*#__PURE__*/ new WeakMap(), _calcHello = /*#__PURE__*/ new WeakSet(), _screamingHello = /*#__PURE__*/ new WeakMap();
// @target: esnext
// @allowJS: true
// @declaration: true

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _fieldFunc = new WeakMap(), _fieldFunc2 = new WeakMap();
var _fieldFunc = /*#__PURE__*/ new WeakMap(), _fieldFunc2 = /*#__PURE__*/ new WeakMap();
// @target: es2015
class A {
test() {

View File

@ -21,7 +21,7 @@ function _templateObject1() {
};
return data;
}
var _fieldFunc = new WeakMap(), _fieldFunc2 = new WeakMap();
var _fieldFunc = /*#__PURE__*/ new WeakMap(), _fieldFunc2 = /*#__PURE__*/ new WeakMap();
// @target: es2015
var A = /*#__PURE__*/ function() {
"use strict";

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _prop = new WeakMap(), _roProp = new WeakMap();
var _prop = /*#__PURE__*/ new WeakMap(), _roProp = /*#__PURE__*/ new WeakMap();
// @strict: true
// @target: es6
class A1 {

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap(), new WeakMap();

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _prop = new WeakMap(), _roProp = new WeakMap();
var _prop = /*#__PURE__*/ new WeakMap(), _roProp = /*#__PURE__*/ new WeakMap();
// @strict: true
// @target: es6
var A1 = function A1(name) {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _prop = new WeakMap();
var _prop = /*#__PURE__*/ new WeakMap();
class B {
constructor(){
swcHelpers.classPrivateFieldInit(this, _prop, {

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap();

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _prop = new WeakMap();
var _prop = /*#__PURE__*/ new WeakMap();
var B = function B() {
"use strict";
swcHelpers.classCallCheck(this, B);

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _prop = new WeakMap();
var _prop = /*#__PURE__*/ new WeakMap();
// @strict: true
// @target: es6
class C {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _prop = new WeakMap();
var _prop = /*#__PURE__*/ new WeakMap();
// @strict: true
// @target: es6
var C = /*#__PURE__*/ function() {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _foo = new WeakMap(), _prop = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _prop = /*#__PURE__*/ new WeakMap();
// @target: esnext, es2022, es2015
class A {
constructor(){

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _foo = new WeakMap(), _prop = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _prop = /*#__PURE__*/ new WeakMap();
// @target: esnext, es2022, es2015
var A = function A() {
"use strict";

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _foo = new WeakMap(), _bar = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap();
// @strict: true
// @target: es6
class A {

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap(), new WeakMap();

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _foo = new WeakMap(), _bar = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap();
// @strict: true
// @target: es6
var A = function A() {

View File

@ -3,7 +3,7 @@ import * as swcHelpers from "@swc/helpers";
const array = [];
for(let i = 0; i < 10; ++i){
var _myField, _method, _accessor, _C;
array.push((_myField = new WeakMap(), _method = new WeakSet(), _accessor = new WeakMap(), _C = class C {
array.push((_myField = /*#__PURE__*/ new WeakMap(), _method = /*#__PURE__*/ new WeakSet(), _accessor = /*#__PURE__*/ new WeakMap(), _C = class C {
constructor(){
swcHelpers.classPrivateMethodInit(this, _method);
swcHelpers.classPrivateFieldInit(this, _accessor, {

View File

@ -8,7 +8,7 @@ for(var i = 0; i < 10; ++i){
};
var set_accessor = function set_accessor(val) {};
var _myField, _method, _accessor, _C;
array.push((_myField = new WeakMap(), _method = new WeakSet(), _accessor = new WeakMap(), _C = function C() {
array.push((_myField = /*#__PURE__*/ new WeakMap(), _method = /*#__PURE__*/ new WeakSet(), _accessor = /*#__PURE__*/ new WeakMap(), _C = function C() {
"use strict";
swcHelpers.classCallCheck(this, C);
swcHelpers.classPrivateMethodInit(this, _method);

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _a = new WeakMap(), _b = new WeakMap(), _c = new WeakMap(), _d = new WeakMap(), _e = new WeakMap();
var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakMap(), _c = /*#__PURE__*/ new WeakMap(), _d = /*#__PURE__*/ new WeakMap(), _e = /*#__PURE__*/ new WeakMap();
// @target: esnext, es2022, es2015
class A {
test() {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _a = new WeakMap(), _b = new WeakMap(), _c = new WeakMap(), _d = new WeakMap(), _e = new WeakMap();
var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakMap(), _c = /*#__PURE__*/ new WeakMap(), _d = /*#__PURE__*/ new WeakMap(), _e = /*#__PURE__*/ new WeakMap();
// @target: esnext, es2022, es2015
var A = /*#__PURE__*/ function() {
"use strict";

View File

@ -1,7 +1,7 @@
import * as swcHelpers from "@swc/helpers";
// @target: esnext, es2022, es2015
let getX;
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
let tmp = (getX = (a)=>swcHelpers.classPrivateFieldGet(a, _x)
, "_");
class A {

View File

@ -1,7 +1,7 @@
import * as swcHelpers from "@swc/helpers";
// @target: esnext, es2022, es2015
var getX;
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
var tmp = (getX = function(a) {
return swcHelpers.classPrivateFieldGet(a, _x);
}, "_");

View File

@ -1,10 +1,10 @@
import * as swcHelpers from "@swc/helpers";
var _name = new WeakMap();
var _name = /*#__PURE__*/ new WeakMap();
// @target: esnext, es2022, es2015
class Foo {
getValue(x) {
const obj = this;
var _y = new WeakMap();
var _y = /*#__PURE__*/ new WeakMap();
let tmp = swcHelpers.classPrivateFieldGet(obj, _name);
class Bar {
[tmp]() {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _name = new WeakMap();
var _name = /*#__PURE__*/ new WeakMap();
// @target: esnext, es2022, es2015
var Foo = /*#__PURE__*/ function() {
"use strict";
@ -14,7 +14,7 @@ var Foo = /*#__PURE__*/ function() {
var _proto1 = Foo.prototype;
_proto1.getValue = function getValue(x) {
var obj = this;
var _y = new WeakMap();
var _y = /*#__PURE__*/ new WeakMap();
var tmp = swcHelpers.classPrivateFieldGet(obj, _name);
var Bar = /*#__PURE__*/ function() {
function Bar() {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
class C {
static test() {
swcHelpers.classPrivateFieldSet(new C(), _x, 10);

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
var C = /*#__PURE__*/ function() {
"use strict";
function C() {

View File

@ -2,7 +2,7 @@ import * as swcHelpers from "@swc/helpers";
// @target: es6
class D {
}
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
class C {
foo() {
const c = new C();

View File

@ -4,7 +4,7 @@ var D = function D() {
"use strict";
swcHelpers.classCallCheck(this, D);
};
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
var C = /*#__PURE__*/ function() {
"use strict";
function C() {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _foo = new WeakMap(), _bar = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap();
// @declaration: true
// @target: es2015
class A {

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap(), new WeakMap();

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _foo = new WeakMap(), _bar = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap();
// @declaration: true
// @target: es2015
var A = /*#__PURE__*/ function() {

View File

@ -2,7 +2,7 @@ import * as swcHelpers from "@swc/helpers";
// @strict: true
// @target: es6
function Field() {
var _foo = new WeakMap(), _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _foo = /*#__PURE__*/ new WeakMap();
// Error
class A_Field_Field {
constructor(){
@ -16,7 +16,7 @@ function Field() {
});
}
}
var _foo1 = new WeakMap(), _foo1 = new WeakSet();
var _foo1 = /*#__PURE__*/ new WeakMap(), _foo1 = /*#__PURE__*/ new WeakSet();
// Error
class A_Field_Method {
constructor(){
@ -28,7 +28,7 @@ function Field() {
}
}
function foo() {}
var _foo2 = new WeakMap(), _foo2 = new WeakMap();
var _foo2 = /*#__PURE__*/ new WeakMap(), _foo2 = /*#__PURE__*/ new WeakMap();
// Error
class A_Field_Getter {
constructor(){
@ -45,7 +45,7 @@ function Field() {
function get_foo() {
return "";
}
var _foo3 = new WeakMap(), _foo3 = new WeakMap();
var _foo3 = /*#__PURE__*/ new WeakMap(), _foo3 = /*#__PURE__*/ new WeakMap();
// Error
class A_Field_Setter {
constructor(){
@ -60,7 +60,7 @@ function Field() {
}
}
function set_foo(value) {}
var _foo4 = new WeakMap();
var _foo4 = /*#__PURE__*/ new WeakMap();
// Error
class A_Field_StaticField {
constructor(){
@ -74,7 +74,7 @@ function Field() {
writable: true,
value: "foo"
};
var _foo5 = new WeakMap();
var _foo5 = /*#__PURE__*/ new WeakMap();
// Error
class A_Field_StaticMethod {
constructor(){
@ -85,7 +85,7 @@ function Field() {
}
}
function foo1() {}
var _foo6 = new WeakMap();
var _foo6 = /*#__PURE__*/ new WeakMap();
// Error
class A_Field_StaticGetter {
constructor(){
@ -102,7 +102,7 @@ function Field() {
function get_foo1() {
return "";
}
var _foo7 = new WeakMap();
var _foo7 = /*#__PURE__*/ new WeakMap();
// Error
class A_Field_StaticSetter {
constructor(){
@ -119,7 +119,7 @@ function Field() {
function set_foo1(value) {}
}
function Method() {
var _foo = new WeakSet(), _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakSet(), _foo = /*#__PURE__*/ new WeakMap();
// Error
class A_Method_Field {
constructor(){
@ -131,7 +131,7 @@ function Method() {
}
}
function foo() {}
var _foo8 = new WeakSet(), _foo8 = new WeakSet();
var _foo8 = /*#__PURE__*/ new WeakSet(), _foo8 = /*#__PURE__*/ new WeakSet();
// Error
class A_Method_Method {
constructor(){
@ -141,7 +141,7 @@ function Method() {
}
function foo2() {}
function foo2() {}
var _foo9 = new WeakSet(), _foo9 = new WeakMap();
var _foo9 = /*#__PURE__*/ new WeakSet(), _foo9 = /*#__PURE__*/ new WeakMap();
// Error
class A_Method_Getter {
constructor(){
@ -156,7 +156,7 @@ function Method() {
function get_foo() {
return "";
}
var _foo10 = new WeakSet(), _foo10 = new WeakMap();
var _foo10 = /*#__PURE__*/ new WeakSet(), _foo10 = /*#__PURE__*/ new WeakMap();
// Error
class A_Method_Setter {
constructor(){
@ -169,7 +169,7 @@ function Method() {
}
function foo4() {}
function set_foo(value) {}
var _foo11 = new WeakSet();
var _foo11 = /*#__PURE__*/ new WeakSet();
// Error
class A_Method_StaticField {
constructor(){
@ -181,7 +181,7 @@ function Method() {
value: "foo"
};
function foo5() {}
var _foo12 = new WeakSet();
var _foo12 = /*#__PURE__*/ new WeakSet();
// Error
class A_Method_StaticMethod {
constructor(){
@ -190,7 +190,7 @@ function Method() {
}
function foo6() {}
function foo6() {}
var _foo13 = new WeakSet();
var _foo13 = /*#__PURE__*/ new WeakSet();
// Error
class A_Method_StaticGetter {
constructor(){
@ -205,7 +205,7 @@ function Method() {
function get_foo2() {
return "";
}
var _foo14 = new WeakSet();
var _foo14 = /*#__PURE__*/ new WeakSet();
// Error
class A_Method_StaticSetter {
constructor(){
@ -220,7 +220,7 @@ function Method() {
function set_foo2(value) {}
}
function Getter() {
var _foo = new WeakMap(), _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _foo = /*#__PURE__*/ new WeakMap();
// Error
class A_Getter_Field {
constructor(){
@ -237,7 +237,7 @@ function Getter() {
function get_foo() {
return "";
}
var _foo15 = new WeakMap(), _foo15 = new WeakSet();
var _foo15 = /*#__PURE__*/ new WeakMap(), _foo15 = /*#__PURE__*/ new WeakSet();
// Error
class A_Getter_Method {
constructor(){
@ -252,7 +252,7 @@ function Getter() {
return "";
}
function foo() {}
var _foo16 = new WeakMap();
var _foo16 = /*#__PURE__*/ new WeakMap();
// Error
class A_Getter_Getter {
constructor(){
@ -268,7 +268,7 @@ function Getter() {
function get_foo4() {
return "";
}
var _foo17 = new WeakMap();
var _foo17 = /*#__PURE__*/ new WeakMap();
//OK
class A_Getter_Setter {
constructor(){
@ -282,7 +282,7 @@ function Getter() {
return "";
}
function set_foo(value) {}
var _foo18 = new WeakMap();
var _foo18 = /*#__PURE__*/ new WeakMap();
// Error
class A_Getter_StaticField {
constructor(){
@ -296,7 +296,7 @@ function Getter() {
return "";
}
function foo9() {}
var _foo19 = new WeakMap();
var _foo19 = /*#__PURE__*/ new WeakMap();
// Error
class A_Getter_StaticMethod {
constructor(){
@ -310,7 +310,7 @@ function Getter() {
return "";
}
function foo10() {}
var _foo20 = new WeakMap();
var _foo20 = /*#__PURE__*/ new WeakMap();
// Error
class A_Getter_StaticGetter {
constructor(){
@ -330,7 +330,7 @@ function Getter() {
function get_foo8() {
return "";
}
var _foo21 = new WeakMap();
var _foo21 = /*#__PURE__*/ new WeakMap();
// Error
class A_Getter_StaticSetter {
constructor(){
@ -350,7 +350,7 @@ function Getter() {
function set_foo3(value) {}
}
function Setter() {
var _foo = new WeakMap(), _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _foo = /*#__PURE__*/ new WeakMap();
// Error
class A_Setter_Field {
constructor(){
@ -365,7 +365,7 @@ function Setter() {
}
}
function set_foo(value) {}
var _foo22 = new WeakMap(), _foo22 = new WeakSet();
var _foo22 = /*#__PURE__*/ new WeakMap(), _foo22 = /*#__PURE__*/ new WeakSet();
// Error
class A_Setter_Method {
constructor(){
@ -378,7 +378,7 @@ function Setter() {
}
function set_foo4(value) {}
function foo() {}
var _foo23 = new WeakMap();
var _foo23 = /*#__PURE__*/ new WeakMap();
// OK
class A_Setter_Getter {
constructor(){
@ -392,7 +392,7 @@ function Setter() {
function get_foo() {
return "";
}
var _foo24 = new WeakMap();
var _foo24 = /*#__PURE__*/ new WeakMap();
// Error
class A_Setter_Setter {
constructor(){
@ -404,7 +404,7 @@ function Setter() {
}
function set_foo6(value) {}
function set_foo6(value) {}
var _foo25 = new WeakMap();
var _foo25 = /*#__PURE__*/ new WeakMap();
// Error
class A_Setter_StaticField {
constructor(){
@ -419,7 +419,7 @@ function Setter() {
value: "foo"
};
function set_foo7(value) {}
var _foo26 = new WeakMap();
var _foo26 = /*#__PURE__*/ new WeakMap();
// Error
class A_Setter_StaticMethod {
constructor(){
@ -431,7 +431,7 @@ function Setter() {
}
function set_foo8(value) {}
function foo11() {}
var _foo27 = new WeakMap();
var _foo27 = /*#__PURE__*/ new WeakMap();
// Error
class A_Setter_StaticGetter {
constructor(){
@ -449,7 +449,7 @@ function Setter() {
function get_foo10() {
return "";
}
var _foo28 = new WeakMap();
var _foo28 = /*#__PURE__*/ new WeakMap();
// Error
class A_Setter_StaticSetter {
constructor(){
@ -467,7 +467,7 @@ function Setter() {
function set_foo10(value) {}
}
function StaticField() {
var _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticField_Field {
constructor(){
@ -481,7 +481,7 @@ function StaticField() {
writable: true,
value: "foo"
};
var _foo29 = new WeakSet();
var _foo29 = /*#__PURE__*/ new WeakSet();
// Error
class A_StaticField_Method {
constructor(){
@ -493,7 +493,7 @@ function StaticField() {
value: "foo"
};
function foo() {}
var _foo30 = new WeakMap();
var _foo30 = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticField_Getter {
constructor(){
@ -510,7 +510,7 @@ function StaticField() {
function get_foo() {
return "";
}
var _foo31 = new WeakMap();
var _foo31 = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticField_Setter {
constructor(){
@ -572,7 +572,7 @@ function StaticField() {
function set_foo11(value) {}
}
function StaticMethod() {
var _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticMethod_Field {
constructor(){
@ -583,7 +583,7 @@ function StaticMethod() {
}
}
function foo() {}
var _foo36 = new WeakSet();
var _foo36 = /*#__PURE__*/ new WeakSet();
// Error
class A_StaticMethod_Method {
constructor(){
@ -592,7 +592,7 @@ function StaticMethod() {
}
function foo13() {}
function foo13() {}
var _foo37 = new WeakMap();
var _foo37 = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticMethod_Getter {
constructor(){
@ -606,7 +606,7 @@ function StaticMethod() {
function get_foo() {
return "";
}
var _foo38 = new WeakMap();
var _foo38 = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticMethod_Setter {
constructor(){
@ -653,7 +653,7 @@ function StaticMethod() {
function set_foo12(value) {}
}
function StaticGetter() {
var _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticGetter_Field {
constructor(){
@ -670,7 +670,7 @@ function StaticGetter() {
function get_foo() {
return "";
}
var _foo42 = new WeakSet();
var _foo42 = /*#__PURE__*/ new WeakSet();
// Error
class A_StaticGetter_Method {
constructor(){
@ -685,7 +685,7 @@ function StaticGetter() {
return "";
}
function foo() {}
var _foo43 = new WeakMap();
var _foo43 = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticGetter_Getter {
constructor(){
@ -705,7 +705,7 @@ function StaticGetter() {
function get_foo14() {
return "";
}
var _foo44 = new WeakMap();
var _foo44 = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticGetter_Setter {
constructor(){
@ -771,7 +771,7 @@ function StaticGetter() {
function set_foo13(value) {}
}
function StaticSetter() {
var _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticSetter_Field {
constructor(){
@ -786,7 +786,7 @@ function StaticSetter() {
set: set_foo
};
function set_foo(value) {}
var _foo49 = new WeakSet();
var _foo49 = /*#__PURE__*/ new WeakSet();
// Error
class A_StaticSetter_Method {
constructor(){
@ -799,7 +799,7 @@ function StaticSetter() {
};
function set_foo14(value) {}
function foo() {}
var _foo50 = new WeakMap();
var _foo50 = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticSetter_Getter {
constructor(){
@ -817,7 +817,7 @@ function StaticSetter() {
function get_foo() {
return "";
}
var _foo51 = new WeakMap();
var _foo51 = /*#__PURE__*/ new WeakMap();
// Error
class A_StaticSetter_Setter {
constructor(){

View File

@ -12,7 +12,7 @@ function Field() {
return "";
};
var set_foo1 = function set_foo1(value) {};
var _foo = new WeakMap(), _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _foo = /*#__PURE__*/ new WeakMap();
// Error
var A_Field_Field = function A_Field_Field() {
"use strict";
@ -26,7 +26,7 @@ function Field() {
value: "foo"
});
};
var _foo1 = new WeakMap(), _foo1 = new WeakSet();
var _foo1 = /*#__PURE__*/ new WeakMap(), _foo1 = /*#__PURE__*/ new WeakSet();
// Error
var A_Field_Method = function A_Field_Method() {
"use strict";
@ -37,7 +37,7 @@ function Field() {
value: "foo"
});
};
var _foo2 = new WeakMap(), _foo2 = new WeakMap();
var _foo2 = /*#__PURE__*/ new WeakMap(), _foo2 = /*#__PURE__*/ new WeakMap();
// Error
var A_Field_Getter = function A_Field_Getter() {
"use strict";
@ -51,7 +51,7 @@ function Field() {
value: "foo"
});
};
var _foo3 = new WeakMap(), _foo3 = new WeakMap();
var _foo3 = /*#__PURE__*/ new WeakMap(), _foo3 = /*#__PURE__*/ new WeakMap();
// Error
var A_Field_Setter = function A_Field_Setter() {
"use strict";
@ -65,7 +65,7 @@ function Field() {
value: "foo"
});
};
var _foo4 = new WeakMap();
var _foo4 = /*#__PURE__*/ new WeakMap();
// Error
var A_Field_StaticField = function A_Field_StaticField() {
"use strict";
@ -79,7 +79,7 @@ function Field() {
writable: true,
value: "foo"
};
var _foo5 = new WeakMap();
var _foo5 = /*#__PURE__*/ new WeakMap();
// Error
var A_Field_StaticMethod = function A_Field_StaticMethod() {
"use strict";
@ -89,7 +89,7 @@ function Field() {
value: "foo"
});
};
var _foo6 = new WeakMap();
var _foo6 = /*#__PURE__*/ new WeakMap();
// Error
var A_Field_StaticGetter = function A_Field_StaticGetter() {
"use strict";
@ -103,7 +103,7 @@ function Field() {
get: get_foo1,
set: void 0
};
var _foo7 = new WeakMap();
var _foo7 = /*#__PURE__*/ new WeakMap();
// Error
var A_Field_StaticSetter = function A_Field_StaticSetter() {
"use strict";
@ -137,7 +137,7 @@ function Method() {
};
var foo8 = function foo8() {};
var set_foo2 = function set_foo2(value) {};
var _foo = new WeakSet(), _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakSet(), _foo = /*#__PURE__*/ new WeakMap();
// Error
var A_Method_Field = function A_Method_Field() {
"use strict";
@ -148,7 +148,7 @@ function Method() {
value: "foo"
});
};
var _foo8 = new WeakSet(), _foo8 = new WeakSet();
var _foo8 = /*#__PURE__*/ new WeakSet(), _foo8 = /*#__PURE__*/ new WeakSet();
// Error
var A_Method_Method = function A_Method_Method() {
"use strict";
@ -156,7 +156,7 @@ function Method() {
swcHelpers.classPrivateMethodInit(this, _foo8);
swcHelpers.classPrivateMethodInit(this, _foo8);
};
var _foo9 = new WeakSet(), _foo9 = new WeakMap();
var _foo9 = /*#__PURE__*/ new WeakSet(), _foo9 = /*#__PURE__*/ new WeakMap();
// Error
var A_Method_Getter = function A_Method_Getter() {
"use strict";
@ -167,7 +167,7 @@ function Method() {
set: void 0
});
};
var _foo10 = new WeakSet(), _foo10 = new WeakMap();
var _foo10 = /*#__PURE__*/ new WeakSet(), _foo10 = /*#__PURE__*/ new WeakMap();
// Error
var A_Method_Setter = function A_Method_Setter() {
"use strict";
@ -178,7 +178,7 @@ function Method() {
set: set_foo
});
};
var _foo11 = new WeakSet();
var _foo11 = /*#__PURE__*/ new WeakSet();
// Error
var A_Method_StaticField = function A_Method_StaticField() {
"use strict";
@ -189,14 +189,14 @@ function Method() {
writable: true,
value: "foo"
};
var _foo12 = new WeakSet();
var _foo12 = /*#__PURE__*/ new WeakSet();
// Error
var A_Method_StaticMethod = function A_Method_StaticMethod() {
"use strict";
swcHelpers.classCallCheck(this, A_Method_StaticMethod);
swcHelpers.classPrivateMethodInit(this, _foo12);
};
var _foo13 = new WeakSet();
var _foo13 = /*#__PURE__*/ new WeakSet();
// Error
var A_Method_StaticGetter = function A_Method_StaticGetter() {
"use strict";
@ -207,7 +207,7 @@ function Method() {
get: get_foo2,
set: void 0
};
var _foo14 = new WeakSet();
var _foo14 = /*#__PURE__*/ new WeakSet();
// Error
var A_Method_StaticSetter = function A_Method_StaticSetter() {
"use strict";
@ -255,7 +255,7 @@ function Getter() {
return "";
};
var set_foo3 = function set_foo3(value) {};
var _foo = new WeakMap(), _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _foo = /*#__PURE__*/ new WeakMap();
// Error
var A_Getter_Field = function A_Getter_Field() {
"use strict";
@ -269,7 +269,7 @@ function Getter() {
value: "foo"
});
};
var _foo15 = new WeakMap(), _foo15 = new WeakSet();
var _foo15 = /*#__PURE__*/ new WeakMap(), _foo15 = /*#__PURE__*/ new WeakSet();
// Error
var A_Getter_Method = function A_Getter_Method() {
"use strict";
@ -280,7 +280,7 @@ function Getter() {
});
swcHelpers.classPrivateMethodInit(this, _foo15);
};
var _foo16 = new WeakMap();
var _foo16 = /*#__PURE__*/ new WeakMap();
// Error
var A_Getter_Getter = function A_Getter_Getter() {
"use strict";
@ -290,7 +290,7 @@ function Getter() {
set: void 0
});
};
var _foo17 = new WeakMap();
var _foo17 = /*#__PURE__*/ new WeakMap();
//OK
var A_Getter_Setter = function A_Getter_Setter() {
"use strict";
@ -300,7 +300,7 @@ function Getter() {
set: set_foo
});
};
var _foo18 = new WeakMap();
var _foo18 = /*#__PURE__*/ new WeakMap();
// Error
var A_Getter_StaticField = function A_Getter_StaticField() {
"use strict";
@ -310,7 +310,7 @@ function Getter() {
set: void 0
});
};
var _foo19 = new WeakMap();
var _foo19 = /*#__PURE__*/ new WeakMap();
// Error
var A_Getter_StaticMethod = function A_Getter_StaticMethod() {
"use strict";
@ -320,7 +320,7 @@ function Getter() {
set: void 0
});
};
var _foo20 = new WeakMap();
var _foo20 = /*#__PURE__*/ new WeakMap();
// Error
var A_Getter_StaticGetter = function A_Getter_StaticGetter() {
"use strict";
@ -334,7 +334,7 @@ function Getter() {
get: get_foo8,
set: void 0
};
var _foo21 = new WeakMap();
var _foo21 = /*#__PURE__*/ new WeakMap();
// Error
var A_Getter_StaticSetter = function A_Getter_StaticSetter() {
"use strict";
@ -368,7 +368,7 @@ function Setter() {
};
var set_foo10 = function set_foo10(value) {};
var set_foo10 = function set_foo10(value) {};
var _foo = new WeakMap(), _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _foo = /*#__PURE__*/ new WeakMap();
// Error
var A_Setter_Field = function A_Setter_Field() {
"use strict";
@ -382,7 +382,7 @@ function Setter() {
value: "foo"
});
};
var _foo22 = new WeakMap(), _foo22 = new WeakSet();
var _foo22 = /*#__PURE__*/ new WeakMap(), _foo22 = /*#__PURE__*/ new WeakSet();
// Error
var A_Setter_Method = function A_Setter_Method() {
"use strict";
@ -393,7 +393,7 @@ function Setter() {
});
swcHelpers.classPrivateMethodInit(this, _foo22);
};
var _foo23 = new WeakMap();
var _foo23 = /*#__PURE__*/ new WeakMap();
// OK
var A_Setter_Getter = function A_Setter_Getter() {
"use strict";
@ -403,7 +403,7 @@ function Setter() {
set: set_foo5
});
};
var _foo24 = new WeakMap();
var _foo24 = /*#__PURE__*/ new WeakMap();
// Error
var A_Setter_Setter = function A_Setter_Setter() {
"use strict";
@ -413,7 +413,7 @@ function Setter() {
set: set_foo6
});
};
var _foo25 = new WeakMap();
var _foo25 = /*#__PURE__*/ new WeakMap();
// Error
var A_Setter_StaticField = function A_Setter_StaticField() {
"use strict";
@ -427,7 +427,7 @@ function Setter() {
writable: true,
value: "foo"
};
var _foo26 = new WeakMap();
var _foo26 = /*#__PURE__*/ new WeakMap();
// Error
var A_Setter_StaticMethod = function A_Setter_StaticMethod() {
"use strict";
@ -437,7 +437,7 @@ function Setter() {
set: set_foo8
});
};
var _foo27 = new WeakMap();
var _foo27 = /*#__PURE__*/ new WeakMap();
// Error
var A_Setter_StaticGetter = function A_Setter_StaticGetter() {
"use strict";
@ -451,7 +451,7 @@ function Setter() {
get: get_foo10,
set: void 0
};
var _foo28 = new WeakMap();
var _foo28 = /*#__PURE__*/ new WeakMap();
// Error
var A_Setter_StaticSetter = function A_Setter_StaticSetter() {
"use strict";
@ -477,7 +477,7 @@ function StaticField() {
return "";
};
var set_foo11 = function set_foo11(value) {};
var _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticField_Field = function A_StaticField_Field() {
"use strict";
@ -491,7 +491,7 @@ function StaticField() {
writable: true,
value: "foo"
};
var _foo29 = new WeakSet();
var _foo29 = /*#__PURE__*/ new WeakSet();
// Error
var A_StaticField_Method = function A_StaticField_Method() {
"use strict";
@ -502,7 +502,7 @@ function StaticField() {
writable: true,
value: "foo"
};
var _foo30 = new WeakMap();
var _foo30 = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticField_Getter = function A_StaticField_Getter() {
"use strict";
@ -516,7 +516,7 @@ function StaticField() {
writable: true,
value: "foo"
};
var _foo31 = new WeakMap();
var _foo31 = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticField_Setter = function A_StaticField_Setter() {
"use strict";
@ -598,7 +598,7 @@ function StaticMethod() {
};
var foo19 = function foo19() {};
var set_foo12 = function set_foo12(value) {};
var _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticMethod_Field = function A_StaticMethod_Field() {
"use strict";
@ -608,14 +608,14 @@ function StaticMethod() {
value: "foo"
});
};
var _foo36 = new WeakSet();
var _foo36 = /*#__PURE__*/ new WeakSet();
// Error
var A_StaticMethod_Method = function A_StaticMethod_Method() {
"use strict";
swcHelpers.classCallCheck(this, A_StaticMethod_Method);
swcHelpers.classPrivateMethodInit(this, _foo36);
};
var _foo37 = new WeakMap();
var _foo37 = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticMethod_Getter = function A_StaticMethod_Getter() {
"use strict";
@ -625,7 +625,7 @@ function StaticMethod() {
set: void 0
});
};
var _foo38 = new WeakMap();
var _foo38 = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticMethod_Setter = function A_StaticMethod_Setter() {
"use strict";
@ -704,7 +704,7 @@ function StaticGetter() {
return "";
};
var set_foo13 = function set_foo13(value) {};
var _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticGetter_Field = function A_StaticGetter_Field() {
"use strict";
@ -718,7 +718,7 @@ function StaticGetter() {
get: get_foo,
set: void 0
};
var _foo42 = new WeakSet();
var _foo42 = /*#__PURE__*/ new WeakSet();
// Error
var A_StaticGetter_Method = function A_StaticGetter_Method() {
"use strict";
@ -729,7 +729,7 @@ function StaticGetter() {
get: get_foo13,
set: void 0
};
var _foo43 = new WeakMap();
var _foo43 = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticGetter_Getter = function A_StaticGetter_Getter() {
"use strict";
@ -743,7 +743,7 @@ function StaticGetter() {
get: get_foo14,
set: void 0
};
var _foo44 = new WeakMap();
var _foo44 = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticGetter_Setter = function A_StaticGetter_Setter() {
"use strict";
@ -813,7 +813,7 @@ function StaticSetter() {
};
var set_foo20 = function set_foo20(value) {};
var set_foo20 = function set_foo20(value) {};
var _foo = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticSetter_Field = function A_StaticSetter_Field() {
"use strict";
@ -827,7 +827,7 @@ function StaticSetter() {
get: void 0,
set: set_foo
};
var _foo49 = new WeakSet();
var _foo49 = /*#__PURE__*/ new WeakSet();
// Error
var A_StaticSetter_Method = function A_StaticSetter_Method() {
"use strict";
@ -838,7 +838,7 @@ function StaticSetter() {
get: void 0,
set: set_foo14
};
var _foo50 = new WeakMap();
var _foo50 = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticSetter_Getter = function A_StaticSetter_Getter() {
"use strict";
@ -852,7 +852,7 @@ function StaticSetter() {
get: void 0,
set: set_foo15
};
var _foo51 = new WeakMap();
var _foo51 = /*#__PURE__*/ new WeakMap();
// Error
var A_StaticSetter_Setter = function A_StaticSetter_Setter() {
"use strict";

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _field = new WeakMap(), _method = new WeakSet(), _acc = new WeakMap();
var _field = /*#__PURE__*/ new WeakMap(), _method = /*#__PURE__*/ new WeakSet(), _acc = /*#__PURE__*/ new WeakMap();
// @target: es5, es3
class A {
constructor(){

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap(), new WeakSet(), new WeakMap();

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _field = new WeakMap(), _method = new WeakSet(), _acc = new WeakMap();
var _field = /*#__PURE__*/ new WeakMap(), _method = /*#__PURE__*/ new WeakSet(), _acc = /*#__PURE__*/ new WeakMap();
// @target: es5, es3
var A = function A() {
"use strict";

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _a = new WeakMap(), _b = new WeakSet(), _c = new WeakMap();
var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakSet(), _c = /*#__PURE__*/ new WeakMap();
// @target: es2015
// @importHelpers: true
// @isolatedModules: true

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _a = new WeakMap(), _b = new WeakSet(), _c = new WeakMap();
var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakSet(), _c = /*#__PURE__*/ new WeakMap();
// @target: es2015
// @importHelpers: true
// @isolatedModules: true

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _myField = new WeakMap();
var _myField = /*#__PURE__*/ new WeakMap();
// @target: es2015
class A {
constructor(){

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap();

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _myField = new WeakMap();
var _myField = /*#__PURE__*/ new WeakMap();
// @target: es2015
var A = function A() {
"use strict";

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _field = new WeakMap();
var _field = /*#__PURE__*/ new WeakMap();
// @target: es2015
class A {
static getInstance() {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _field = new WeakMap();
var _field = /*#__PURE__*/ new WeakMap();
// @target: es2015
var A = /*#__PURE__*/ function() {
"use strict";

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _fieldFunc = new WeakMap(), _fieldFunc2 = new WeakMap();
var _fieldFunc = /*#__PURE__*/ new WeakMap(), _fieldFunc2 = /*#__PURE__*/ new WeakMap();
// @target: es2015
class A {
test() {

View File

@ -21,7 +21,7 @@ function _templateObject1() {
};
return data;
}
var _fieldFunc = new WeakMap(), _fieldFunc2 = new WeakMap();
var _fieldFunc = /*#__PURE__*/ new WeakMap(), _fieldFunc2 = /*#__PURE__*/ new WeakMap();
// @target: es2015
var A = /*#__PURE__*/ function() {
"use strict";

View File

@ -1,6 +1,6 @@
import * as swcHelpers from "@swc/helpers";
var _class, _Foo;
var _foo = new WeakMap(), _foo2 = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _foo2 = /*#__PURE__*/ new WeakMap();
// @target: es2015
class B {
constructor(){

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap(), new WeakMap();

View File

@ -1,6 +1,6 @@
import * as swcHelpers from "@swc/helpers";
var _class, _Foo;
var _foo = new WeakMap(), _foo2 = new WeakMap();
var _foo = /*#__PURE__*/ new WeakMap(), _foo2 = /*#__PURE__*/ new WeakMap();
// @target: es2015
var B = function B() {
"use strict";

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _field = new WeakMap(), _uninitialized = new WeakMap();
var _field = /*#__PURE__*/ new WeakMap(), _uninitialized = /*#__PURE__*/ new WeakMap();
// @target: es2015
class A {
constructor(){

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap(), new WeakMap();

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _field = new WeakMap(), _uninitialized = new WeakMap();
var _field = /*#__PURE__*/ new WeakMap(), _uninitialized = /*#__PURE__*/ new WeakMap();
// @target: es2015
var A = function A() {
"use strict";

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _test = new WeakMap();
var _test = /*#__PURE__*/ new WeakMap();
// @target: es2015
class C {
test() {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _test = new WeakMap();
var _test = /*#__PURE__*/ new WeakMap();
// @target: es2015
var C = /*#__PURE__*/ function() {
"use strict";

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _name = new WeakMap();
var _name = /*#__PURE__*/ new WeakMap();
// @strict: true
// @target: es6
class A {

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap();

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _name = new WeakMap();
var _name = /*#__PURE__*/ new WeakMap();
// @strict: true
// @target: es6
var A = function A(name) {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _a = new WeakMap(), _b = new WeakMap(), _something = new WeakMap();
var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakMap(), _something = /*#__PURE__*/ new WeakMap();
// @target: esnext, es2022
// @useDefineForClassFields: false
class C {

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _a = new WeakMap(), _b = new WeakMap(), _something = new WeakMap();
var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakMap(), _something = /*#__PURE__*/ new WeakMap();
// @target: esnext, es2022
// @useDefineForClassFields: false
var C = /*#__PURE__*/ function() {

View File

@ -1,6 +1,6 @@
import * as swcHelpers from "@swc/helpers";
var _brand_check_brand = new WeakSet();
var _unused = new WeakMap(), _brand = new WeakMap();
var _unused = /*#__PURE__*/ new WeakMap(), _brand = /*#__PURE__*/ new WeakMap();
// @strict: true
// @noUnusedLocals: true
// @target: esnext, es2022

View File

@ -1,2 +1,2 @@
import * as swcHelpers from "@swc/helpers";
new WeakSet(), new WeakMap(), new WeakMap();
new WeakSet();

View File

@ -1,6 +1,6 @@
import * as swcHelpers from "@swc/helpers";
var _brand_check_brand = new WeakSet();
var _unused = new WeakMap(), _brand = new WeakMap();
var _unused = /*#__PURE__*/ new WeakMap(), _brand = /*#__PURE__*/ new WeakMap();
// @strict: true
// @noUnusedLocals: true
// @target: esnext, es2022

View File

@ -1,11 +1,11 @@
import * as swcHelpers from "@swc/helpers";
var _y = new WeakMap();
var _y = /*#__PURE__*/ new WeakMap();
// @target: es2015
class Test {
static something(obj) {
var _s;
var _x, _x1;
swcHelpers.classPrivateFieldSet(obj[(new (_x = new WeakMap(), class {
swcHelpers.classPrivateFieldSet(obj[(new (_x = /*#__PURE__*/ new WeakMap(), class {
constructor(){
swcHelpers.classPrivateFieldInit(this, _x, {
writable: true,
@ -14,7 +14,7 @@ class Test {
this.s = "prop";
}
})).s], _y, 1);
swcHelpers.classPrivateFieldSet(_s = obj[(new (_x1 = new WeakMap(), class {
swcHelpers.classPrivateFieldSet(_s = obj[(new (_x1 = /*#__PURE__*/ new WeakMap(), class {
constructor(){
swcHelpers.classPrivateFieldInit(this, _x1, {
writable: true,

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap();

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _y = new WeakMap();
var _y = /*#__PURE__*/ new WeakMap();
// @target: es2015
var Test = /*#__PURE__*/ function() {
"use strict";
@ -13,7 +13,7 @@ var Test = /*#__PURE__*/ function() {
Test.something = function something(obj) {
var _s;
var _x, _x1;
swcHelpers.classPrivateFieldSet(obj[(new (_x = new WeakMap(), function _class() {
swcHelpers.classPrivateFieldSet(obj[(new (_x = /*#__PURE__*/ new WeakMap(), function _class() {
swcHelpers.classCallCheck(this, _class);
swcHelpers.classPrivateFieldInit(this, _x, {
writable: true,
@ -21,7 +21,7 @@ var Test = /*#__PURE__*/ function() {
});
this.s = "prop";
})).s], _y, 1);
swcHelpers.classPrivateFieldSet(_s = obj[(new (_x1 = new WeakMap(), function _class() {
swcHelpers.classPrivateFieldSet(_s = obj[(new (_x1 = /*#__PURE__*/ new WeakMap(), function _class() {
swcHelpers.classCallCheck(this, _class);
swcHelpers.classPrivateFieldInit(this, _x1, {
writable: true,

View File

@ -3,7 +3,7 @@ import * as swcHelpers from "@swc/helpers";
// @useDefineForClassFields: true
class B {
}
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
class A extends B {
constructor(){
void 0;

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap();

View File

@ -5,7 +5,7 @@ var B = function B() {
"use strict";
swcHelpers.classCallCheck(this, B);
};
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
var A = /*#__PURE__*/ function(B) {
"use strict";
swcHelpers.inherits(A, B);

View File

@ -2,7 +2,7 @@ import * as swcHelpers from "@swc/helpers";
// @target: es2015
class B {
}
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
class A extends B {
constructor(){
void 0;

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakMap();

View File

@ -4,7 +4,7 @@ var B = function B() {
"use strict";
swcHelpers.classCallCheck(this, B);
};
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
var A = /*#__PURE__*/ function(B) {
"use strict";
swcHelpers.inherits(A, B);

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _method = new WeakSet();
var _method = /*#__PURE__*/ new WeakSet();
// @target: es2015
class A3 {
constructor(a, b){

View File

@ -1,2 +1 @@
import * as swcHelpers from "@swc/helpers";
new WeakSet();

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _method = new WeakSet();
var _method = /*#__PURE__*/ new WeakSet();
// @target: es2015
var A3 = function A3(a, b) {
"use strict";

View File

@ -1,7 +1,7 @@
import * as swcHelpers from "@swc/helpers";
var _bar, _baz, _qux, _class;
// @target: es2019
const C = (_bar = new WeakSet(), _baz = new WeakSet(), _qux = new WeakSet(), _class = class {
const C = (_bar = /*#__PURE__*/ new WeakSet(), _baz = /*#__PURE__*/ new WeakSet(), _qux = /*#__PURE__*/ new WeakSet(), _class = class {
foo() {
var _this = this;
return swcHelpers.asyncToGenerator(function*() {

View File

@ -3,7 +3,7 @@ import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(baz);
var _bar, _baz, _qux, _class;
// @target: es2019
var C = (_bar = new WeakSet(), _baz = new WeakSet(), _qux = new WeakSet(), _class = /*#__PURE__*/ function() {
var C = (_bar = /*#__PURE__*/ new WeakSet(), _baz = /*#__PURE__*/ new WeakSet(), _qux = /*#__PURE__*/ new WeakSet(), _class = /*#__PURE__*/ function() {
"use strict";
function _class1() {
swcHelpers.classCallCheck(this, _class1);

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _method = new WeakSet(), _method2 = new WeakSet();
var _method = /*#__PURE__*/ new WeakSet(), _method2 = /*#__PURE__*/ new WeakSet();
// @target: es2015
class AA {
test() {

View File

@ -32,7 +32,7 @@ function _templateObject2() {
};
return data;
}
var _method = new WeakSet(), _method2 = new WeakSet();
var _method = /*#__PURE__*/ new WeakSet(), _method2 = /*#__PURE__*/ new WeakSet();
// @target: es2015
var AA = /*#__PURE__*/ function() {
"use strict";

View File

@ -1,5 +1,5 @@
import * as swcHelpers from "@swc/helpers";
var _ref, _method = new WeakSet();
var _ref, _method = /*#__PURE__*/ new WeakSet();
// @target: es2015
class C {
constructor(){

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