fix(es): Preserve more comments (#9449)

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/9255
This commit is contained in:
Donny/강동윤 2024-08-19 13:16:35 +09:00 committed by GitHub
parent 8845b76ac4
commit 673655c169
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
432 changed files with 796 additions and 784 deletions

View File

@ -0,0 +1,6 @@
---
swc_compiler_base: patch
swc_core: patch
---
fix(es): Preserve more comments

View File

@ -1,5 +1,5 @@
var _ClassB;
module.exports = ((_ClassB = function() {
module.exports = ((_ClassB = /*#__PURE__*/ function() {
"use strict";
function t() {}
return t.prototype.it = function() {

View File

@ -1,9 +1,9 @@
export function App() {
return React.createElement(Form, null);
return /*#__PURE__*/ React.createElement(Form, null);
}
export function Form(param) {
var _param_onChange = param.onChange, onChange = _param_onChange === void 0 ? function() {} : _param_onChange;
return React.createElement("input", {
return /*#__PURE__*/ React.createElement("input", {
onChange: function onChange1() {
onChange();
}

View File

@ -7,7 +7,7 @@ export var CompanyBgStore = function CompanyBgStore() {
_class_call_check(this, CompanyBgStore);
var _this = this;
_define_property(this, "corpName", 123);
_define_property(this, "getBusinessInfo", _async_to_generator(function() {
_define_property(this, "getBusinessInfo", /*#__PURE__*/ _async_to_generator(function() {
var corpName;
var _arguments = arguments;
return _ts_generator(this, function(_state) {

View File

@ -1,6 +1,6 @@
import { _ as _class_private_field_loose_base } from "@swc/helpers/_/_class_private_field_loose_base";
import { _ as _class_private_field_loose_key } from "@swc/helpers/_/_class_private_field_loose_key";
var _channelName = _class_private_field_loose_key("_channelName"), _listeners = _class_private_field_loose_key("_listeners");
var _channelName = /*#__PURE__*/ _class_private_field_loose_key("_channelName"), _listeners = /*#__PURE__*/ _class_private_field_loose_key("_listeners");
export class LocalStorageChannel {
constructor(channelName){
Object.defineProperty(this, _channelName, {

View File

@ -3,7 +3,7 @@ var _create_class = require("@swc/helpers/_/_create_class");
var commands;
var command;
function retornaTempoArenaEmMilisegundos(distancia, velocidade) {
var conv = distancia * function() {
var conv = distancia * /*#__PURE__*/ function() {
"use strict";
function LogExit(param) {
var logger = param.logger;

View File

@ -2,7 +2,7 @@ var _async_to_generator = require("@swc/helpers/_/_async_to_generator");
var _class_call_check = require("@swc/helpers/_/_class_call_check");
var _create_class = require("@swc/helpers/_/_create_class");
var _ts_generator = require("@swc/helpers/_/_ts_generator");
var Foo = function() {
var Foo = /*#__PURE__*/ function() {
"use strict";
function Foo() {
_class_call_check._(this, Foo);
@ -11,7 +11,7 @@ var Foo = function() {
{
key: "bar",
value: function bar() {
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _async_to_generator._(function() {
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : /*#__PURE__*/ _async_to_generator._(function() {
return _ts_generator._(this, function(_state) {
switch(_state.label){
case 0:

View File

@ -7,7 +7,7 @@ class Base {
return 'good';
}
}
var _privateMethod = new WeakSet();
var _privateMethod = /*#__PURE__*/ new WeakSet();
class Sub extends Base {
superMethod() {
return 'bad';

View File

@ -5,7 +5,7 @@ import { _ as _create_super } from "@swc/helpers/_/_create_super";
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
import React from 'react';
import { withRouter } from 'react-router-dom';
var App = function(_React_Component) {
var App = /*#__PURE__*/ function(_React_Component) {
"use strict";
_inherits(App, _React_Component);
var _super = _create_super(App);
@ -18,7 +18,7 @@ var App = function(_React_Component) {
key: "render",
value: function render() {
console.log(this.props);
return React.createElement("div", null, "134");
return /*#__PURE__*/ React.createElement("div", null, "134");
}
}
]);

View File

@ -1,6 +1,6 @@
var _class_private_field_get = require("@swc/helpers/_/_class_private_field_get");
var _class_private_field_init = require("@swc/helpers/_/_class_private_field_init");
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
class Foo {
test() {
var _this, _this_y;

View File

@ -1,6 +1,6 @@
var _class_private_field_get = require("@swc/helpers/_/_class_private_field_get");
var _class_private_field_init = require("@swc/helpers/_/_class_private_field_init");
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
class Foo {
test() {
var _this, _this_y;

View File

@ -1 +1 @@
export default function Home(){return React.createElement("div",{dangerouslySetInnerHTML:{__html:"Hello World"}})}
export default function Home(){return /*#__PURE__*/React.createElement("div",{dangerouslySetInnerHTML:{__html:"Hello World"}})}

View File

@ -11,5 +11,5 @@ let positions = {
};
export function PositionRender({ isRtl, position }) {
let display = ('fe-fe-fe' === isRtl ? rtlPositions : positions)[position];
return React.createElement("h1", null, "PositionRender: ", display);
return /*#__PURE__*/ React.createElement("h1", null, "PositionRender: ", display);
}

View File

@ -15,5 +15,5 @@ export function PositionRender({ isRtl, position }) {
] : {
positions
})[position];
return React.createElement("h1", null, "PositionRender: ", display);
return /*#__PURE__*/ React.createElement("h1", null, "PositionRender: ", display);
}

View File

@ -15,5 +15,5 @@ export function PositionRender({ isRtl, position }) {
] : {
positions
})[position];
return React.createElement("h1", null, "PositionRender: ", display);
return /*#__PURE__*/ React.createElement("h1", null, "PositionRender: ", display);
}

View File

@ -13,5 +13,5 @@ export function PositionRender({ isRtl, position }) {
let display = ('fe-fe-fe' === isRtl ? rtlPositions : {
a: positions
})[position];
return React.createElement("h1", null, "PositionRender: ", display);
return /*#__PURE__*/ React.createElement("h1", null, "PositionRender: ", display);
}

View File

@ -15,5 +15,5 @@ export function PositionRender({ isRtl, position }) {
positions
]
})[position];
return React.createElement("h1", null, "PositionRender: ", display);
return /*#__PURE__*/ React.createElement("h1", null, "PositionRender: ", display);
}

View File

@ -1 +1 @@
export default function e(){return React.createElement("div",null,foo.a)}let foo={get a(){return`a ${this.b}`},get b(){return"b"}};
export default function e(){return /*#__PURE__*/React.createElement("div",null,foo.a)}let foo={get a(){return`a ${this.b}`},get b(){return"b"}};

View File

@ -1,9 +1,9 @@
var Blocks = {
Block1: function() {
return React.createElement(React.Fragment, null, "'Block1xx'");
return /*#__PURE__*/ React.createElement(React.Fragment, null, "'Block1xx'");
},
Block2: function() {
return React.createElement(React.Fragment, null, "'Block2xx'");
return /*#__PURE__*/ React.createElement(React.Fragment, null, "'Block2xx'");
},
Layout1: function() {
return [
@ -14,5 +14,5 @@ var Blocks = {
}
};
export function render() {
return React.createElement(Blocks.Layout1, null);
return /*#__PURE__*/ React.createElement(Blocks.Layout1, null);
}

View File

@ -2,7 +2,7 @@ var _class_call_check = require("@swc/helpers/_/_class_call_check");
var _create_class = require("@swc/helpers/_/_create_class");
var _ts_decorate = require("@swc/helpers/_/_ts_decorate");
var _class;
var foo = (_class = function() {
var foo = (_class = /*#__PURE__*/ function() {
"use strict";
function _class() {
_class_call_check._(this, _class);

View File

@ -1,7 +1,7 @@
import { jsx as _jsx } from "react/jsx-runtime";
export const IconSpecHotkey = (param)=>{
let { icon } = param;
return _jsx("div", {
return /*#__PURE__*/ _jsx("div", {
children: icon
});
};

View File

@ -1,7 +1,7 @@
const { jsxDEV: _jsxDEV } = require("react/jsx-dev-runtime");
const Component = ()=>{
return _jsxDEV("p", {
thing: _jsxDEV("a", {}, void 0, false, {
return /*#__PURE__*/ _jsxDEV("p", {
thing: /*#__PURE__*/ _jsxDEV("a", {}, void 0, false, {
fileName: "$DIR/tests/fixture/issues-8xxx/8210/input/1.js",
lineNumber: 2,
columnNumber: 23

View File

@ -1,7 +1,7 @@
import { jsx as _jsx } from "react/jsx-runtime";
export const Foo = (props)=>{
return originalMessage ? _jsx(Bar, {
children: _jsx(Baz, {
return originalMessage ? /*#__PURE__*/ _jsx(Bar, {
children: /*#__PURE__*/ _jsx(Baz, {
children: ()=>null
})
}) : null;

View File

@ -1,7 +1,7 @@
import { jsx as _jsx } from "react/jsx-runtime";
export const Foo = (props)=>{
return originalMessage ? _jsx(Bar, {
children: _jsx(Baz, {
return originalMessage ? /*#__PURE__*/ _jsx(Bar, {
children: /*#__PURE__*/ _jsx(Baz, {
children: ()=>null
})
}) : null;

View File

@ -1,7 +1,7 @@
import { jsx as _jsx } from "react/jsx-runtime";
export const Foo = (props)=>{
return originalMessage ? _jsx(Bar, {
children: _jsx(Baz, {
return originalMessage ? /*#__PURE__*/ _jsx(Bar, {
children: /*#__PURE__*/ _jsx(Baz, {
children: ()=>null
})
}) : null;

View File

@ -1,7 +1,7 @@
import { jsx as _jsx } from "react/jsx-runtime";
export const Foo = (props)=>{
return originalMessage ? _jsx(Bar, {
children: _jsx(Baz, {
return originalMessage ? /*#__PURE__*/ _jsx(Bar, {
children: /*#__PURE__*/ _jsx(Baz, {
children: ()=>null
})
}) : null;

View File

@ -1,4 +1,4 @@
export const c = (function(strings, ...values) {
/*#__PURE__*/ export const c = (function(strings, ...values) {
return {
strings,
values

View File

@ -1,6 +1,6 @@
var _class_call_check = require("@swc/helpers/_/_class_call_check");
var _create_class = require("@swc/helpers/_/_create_class");
var Foo = function() {
var Foo = /*#__PURE__*/ function() {
"use strict";
function Foo() {
_class_call_check._(this, Foo);

View File

@ -2,5 +2,5 @@ import * as React from 'react';
export var FooNs;
(function(FooNs) {
FooNs.Shared = ()=>'I\'m shared component';
FooNs.Main = ()=>React.createElement(FooNs.Shared, null);
FooNs.Main = ()=>/*#__PURE__*/ React.createElement(FooNs.Shared, null);
})(FooNs || (FooNs = {}));

View File

@ -1,6 +1,6 @@
import * as React from 'react';
export var Ns;
(function(Ns) {
Ns.Context = React.createContext();
Ns.Component = ()=>React.createElement(Ns.Context.Provider, null);
Ns.Context = /*#__PURE__*/ React.createContext();
Ns.Component = ()=>/*#__PURE__*/ React.createElement(Ns.Context.Provider, null);
})(Ns || (Ns = {}));

View File

@ -1,4 +1,4 @@
let Foo = createFoo();
export function App() {
return React.createElement("view", null, React.createElement(Foo, null));
return /*#__PURE__*/ React.createElement("view", null, /*#__PURE__*/ React.createElement(Foo, null));
}

View File

@ -1 +1 @@
import{_ as t}from"@swc/helpers/_/_async_to_generator";import{_ as r}from"@swc/helpers/_/_ts_generator";export default function e(t){var r=t.data;return React.createElement("div",null,r.foo)}export function getStaticProps(){return n.apply(this,arguments)}function n(){return(n=t(function(){return r(this,function(t){return[2,{props:{data:{foo:"bar"}}}]})})).apply(this,arguments)}
import{_ as t}from"@swc/helpers/_/_async_to_generator";import{_ as r}from"@swc/helpers/_/_ts_generator";export default function e(t){var r=t.data;return /*#__PURE__*/React.createElement("div",null,r.foo)}export function getStaticProps(){return n.apply(this,arguments)}function n(){return(n=t(function(){return r(this,function(t){return[2,{props:{data:{foo:"bar"}}}]})})).apply(this,arguments)}

View File

@ -1,5 +1,5 @@
{
"mappings": "uGAAA,gBAAe,SAASA,EAAW,CAAQ,MAAR,AAAEC,EAAF,EAAEA,KACjC,OAAO,oBAACC,WAAKD,EAAKE,GAAG,CACzB,CAEA,gBAAsBC,wBAAAA,iCAAAA,WAAAA,EAAf,EAAA,qCACH,SAAO,CACHC,MAAO,CACHJ,KAAM,CACFE,IAAK,KACT,CACJ,CACJ,IACJ",
"mappings": "uGAAA,gBAAe,SAASA,EAAW,CAAQ,MAAR,AAAEC,EAAF,EAAEA,KACjC,oBAAO,oBAACC,WAAKD,EAAKE,GAAG,CACzB,CAEA,gBAAsBC,wBAAAA,iCAAAA,WAAAA,EAAf,EAAA,qCACH,SAAO,CACHC,MAAO,CACHJ,KAAM,CACFE,IAAK,KACT,CACJ,CACJ,IACJ",
"names": [
"StaticPage",
"data",

View File

@ -1,6 +1,6 @@
//// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule = function() {
var clodule = /*#__PURE__*/ function() {
function clodule() {
_class_call_check(this, clodule);
}

View File

@ -1,6 +1,6 @@
//// [ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule = function() {
var clodule = /*#__PURE__*/ function() {
function clodule() {
_class_call_check(this, clodule);
}

View File

@ -1,6 +1,6 @@
//// [ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var clodule, clodule1 = function() {
var clodule, clodule1 = /*#__PURE__*/ function() {
function clodule() {
_class_call_check(this, clodule);
}

View File

@ -1,6 +1,6 @@
//// [ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A, Point, A1, Point1 = function() {
var A, Point, A1, Point1 = /*#__PURE__*/ function() {
function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}
@ -13,7 +13,7 @@ var A, Point, A1, Point1 = function() {
}();
(Point1 || (Point1 = {})).Origin = function() {
return null;
}, A = A1 || (A1 = {}), Point = function() {
}, A = A1 || (A1 = {}), Point = /*#__PURE__*/ function() {
function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}

View File

@ -1,6 +1,6 @@
//// [ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var A, Point, A1, Point1 = function() {
var A, Point, A1, Point1 = /*#__PURE__*/ function() {
function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}
@ -11,7 +11,7 @@ var A, Point, A1, Point1 = function() {
};
}, Point;
}();
Point1 || (Point1 = {}), A = A1 || (A1 = {}), Point = function() {
Point1 || (Point1 = {}), A = A1 || (A1 = {}), Point = /*#__PURE__*/ function() {
function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}

View File

@ -1,6 +1,6 @@
//// [ES5For-ofTypeCheck10.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var StringIterator = function() {
var StringIterator = /*#__PURE__*/ function() {
function StringIterator() {
_class_call_check(this, StringIterator);
}

View File

@ -1,7 +1,7 @@
//// [ES5SymbolProperty2.ts]
var M, M1, _$Symbol, C;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
M1 = M || (M = {}), C = function() {
M1 = M || (M = {}), C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C);
}

View File

@ -1,7 +1,7 @@
//// [ES5SymbolProperty3.ts]
var Symbol;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(new (function() {
(new /*#__PURE__*/ (function() {
function C() {
_class_call_check(this, C);
}

View File

@ -1,7 +1,7 @@
//// [ES5SymbolProperty4.ts]
var Symbol;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(new (function() {
(new /*#__PURE__*/ (function() {
function C() {
_class_call_check(this, C);
}

View File

@ -1,7 +1,7 @@
//// [ES5SymbolProperty5.ts]
var Symbol;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(new (function() {
(new /*#__PURE__*/ (function() {
function C() {
_class_call_check(this, C);
}

View File

@ -1,6 +1,6 @@
//// [ES5SymbolProperty6.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(new (function() {
(new /*#__PURE__*/ (function() {
function C() {
_class_call_check(this, C);
}

View File

@ -1,7 +1,7 @@
//// [ES5SymbolProperty7.ts]
var Symbol;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(new (function() {
(new /*#__PURE__*/ (function() {
function C() {
_class_call_check(this, C);
}

View File

@ -1,7 +1,7 @@
//// [ExportClassWhichExtendsInterfaceWithInaccessibleType.ts]
var A, A1, Point2d;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
A1 = A || (A = {}), Point2d = function() {
A1 = A || (A = {}), Point2d = /*#__PURE__*/ function() {
function Point2d(x, y) {
_class_call_check(this, Point2d), this.x = x, this.y = y;
}

View File

@ -8,7 +8,7 @@ A1 = A || (A = {}), Point = function Point() {
}, A1.Point = Point, A1.Origin = {
x: 0,
y: 0
}, Point3d = function(Point) {
}, Point3d = /*#__PURE__*/ function(Point) {
_inherits(Point3d, Point);
var _super = _create_super(Point3d);
function Point3d() {

View File

@ -6,7 +6,7 @@ import { _ as _create_super } from "@swc/helpers/_/_create_super";
(A1 = A || (A = {})).Origin = {
x: 0,
y: 0
}, Point3d = function(Point) {
}, Point3d = /*#__PURE__*/ function(Point) {
_inherits(Point3d, Point);
var _super = _create_super(Point3d);
function Point3d() {
@ -19,7 +19,7 @@ import { _ as _create_super } from "@swc/helpers/_/_create_super";
x: 0,
y: 0,
z: 0
}, Line = function() {
}, Line = /*#__PURE__*/ function() {
function Line(start, end) {
_class_call_check(this, Line), this.start = start, this.end = end;
}

View File

@ -3,7 +3,7 @@ var A, A1, Point, B, Line;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
A1 = A || (A = {}), Point = function Point(x, y) {
_class_call_check(this, Point), this.x = x, this.y = y;
}, A1.Point = Point, (B = A1.B || (A1.B = {})).Origin = new Point(0, 0), Line = function() {
}, A1.Point = Point, (B = A1.B || (A1.B = {})).Origin = new Point(0, 0), Line = /*#__PURE__*/ function() {
function Line(start, end) {
_class_call_check(this, Line);
}

View File

@ -1,6 +1,6 @@
//// [additionOperatorWithAnyAndEveryType.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var E, E1, M, C = function() {
var E, E1, M, C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C);
}

View File

@ -1,6 +1,6 @@
//// [additionOperatorWithInvalidOperands.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var E, E1, M, C = function() {
var E, E1, M, C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C);
}

View File

@ -1,6 +1,6 @@
//// [Compilation.js]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
export var C = function() {
export var C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C), this.assets = {};
}

View File

@ -8,14 +8,14 @@ var C = function C() {
new C(), new C();
var Base = function Base() {
_class_call_check(this, Base);
}, Derived1 = function(Base) {
}, Derived1 = /*#__PURE__*/ function(Base) {
_inherits(Derived1, Base);
var _super = _create_super(Derived1);
function Derived1() {
return _class_call_check(this, Derived1), _super.apply(this, arguments);
}
return Derived1;
}(Base), Derived2 = function(Base) {
}(Base), Derived2 = /*#__PURE__*/ function(Base) {
_inherits(Derived2, Base);
var _super = _create_super(Derived2);
function Derived2() {

View File

@ -3,7 +3,7 @@ var OnlyDerived, WithBase, Base, Derived, Derived2, Base1, Derived21;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
OnlyDerived || (OnlyDerived = {}), Derived = function(Base) {
OnlyDerived || (OnlyDerived = {}), Derived = /*#__PURE__*/ function(Base) {
_inherits(Derived, Base);
var _super = _create_super(Derived);
function Derived() {
@ -12,14 +12,14 @@ OnlyDerived || (OnlyDerived = {}), Derived = function(Base) {
return Derived;
}(Base = function Base() {
_class_call_check(this, Base);
}), Derived2 = function(Base) {
}), Derived2 = /*#__PURE__*/ function(Base) {
_inherits(Derived2, Base);
var _super = _create_super(Derived2);
function Derived2() {
return _class_call_check(this, Derived2), _super.apply(this, arguments);
}
return Derived2;
}(Base), new Derived(), new Derived2(), WithBase || (WithBase = {}), Derived21 = function(Base) {
}(Base), new Derived(), new Derived2(), WithBase || (WithBase = {}), Derived21 = /*#__PURE__*/ function(Base) {
_inherits(Derived2, Base);
var _super = _create_super(Derived2);
function Derived2() {

View File

@ -5,7 +5,7 @@ import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
var _B, A = function A() {
_class_call_check(this, A);
};
A.B = ((_B = function() {
A.B = ((_B = /*#__PURE__*/ function() {
function B() {
_class_call_check(this, B);
}
@ -14,7 +14,7 @@ A.B = ((_B = function() {
resolve(null);
});
}, B;
}()).C = function() {
}()).C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C);
}

View File

@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
return Task;
}
});
var _class_call_check = require("@swc/helpers/_/_class_call_check"), _inherits = require("@swc/helpers/_/_inherits"), _wrap_native_super = require("@swc/helpers/_/_wrap_native_super"), _create_super = require("@swc/helpers/_/_create_super"), Task = function(Promise1) {
var _class_call_check = require("@swc/helpers/_/_class_call_check"), _inherits = require("@swc/helpers/_/_inherits"), _wrap_native_super = require("@swc/helpers/_/_wrap_native_super"), _create_super = require("@swc/helpers/_/_create_super"), Task = /*#__PURE__*/ function(Promise1) {
_inherits._(Task, Promise1);
var _super = _create_super._(Task);
function Task() {

View File

@ -1,6 +1,6 @@
//// [bitwiseNotOperatorWithBooleanType.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var M, A = function() {
var M, A = /*#__PURE__*/ function() {
function A() {
_class_call_check(this, A);
}

View File

@ -1,6 +1,6 @@
//// [bitwiseNotOperatorWithNumberType.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var M, A = function() {
var M, A = /*#__PURE__*/ function() {
function A() {
_class_call_check(this, A);
}

View File

@ -1,6 +1,6 @@
//// [bitwiseNotOperatorWithStringType.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var STRING, M, A = function() {
var STRING, M, A = /*#__PURE__*/ function() {
function A() {
_class_call_check(this, A);
}

View File

@ -4,7 +4,7 @@ var f3, i, i2, f2 = function(x, y) {
return null;
};
f2(1, ''), f2(1, ''), f3(1, ''), f3(1, '');
var C = function() {
var C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C);
}
@ -13,7 +13,7 @@ var C = function() {
}, C;
}();
new C().f(1, ''), new C().f(1, ''), i.f(1, ''), i.f(1, '');
var C2 = function() {
var C2 = /*#__PURE__*/ function() {
function C2() {
_class_call_check(this, C2);
}

View File

@ -1,14 +1,14 @@
//// [callGenericFunctionWithZeroTypeArguments.ts]
var i, i2;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(void 0)(1), new (function() {
(void 0)(1), new /*#__PURE__*/ (function() {
function C() {
_class_call_check(this, C);
}
return C.prototype.f = function(x) {
return null;
}, C;
}())().f(1), i.f(1), new (function() {
}())().f(1), i.f(1), new /*#__PURE__*/ (function() {
function C2() {
_class_call_check(this, C2);
}

View File

@ -1,14 +1,14 @@
//// [callNonGenericFunctionWithTypeArguments.ts]
var i, i2, a, a2;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(void 0)(1), new (function() {
(void 0)(1), new /*#__PURE__*/ (function() {
function C() {
_class_call_check(this, C);
}
return C.prototype.f = function(x) {
return null;
}, C;
}())().f(1), i.f(1), new (function() {
}())().f(1), i.f(1), new /*#__PURE__*/ (function() {
function C2() {
_class_call_check(this, C2);
}

View File

@ -3,4 +3,4 @@ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
import React from 'react';
React.Component;
/*#__PURE__*/ React.Component;

View File

@ -1,3 +1,3 @@
//// [file.tsx]
import * as React from "react";
GenericComponent, GenericComponent, GenericComponent, GenericComponent;
/*#__PURE__*/ GenericComponent, /*#__PURE__*/ GenericComponent, /*#__PURE__*/ GenericComponent, /*#__PURE__*/ GenericComponent;

View File

@ -2,7 +2,7 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
new (function(Component1) {
new /*#__PURE__*/ (function(Component1) {
_inherits(C, Component1);
var _super = _create_super(C);
function C() {

View File

@ -5,4 +5,4 @@ import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
import * as React from "react";
React.Component;
/*#__PURE__*/ React.Component;

View File

@ -1,10 +1,10 @@
//// [checkJsxUnionSFXContextualTypeInferredCorrectly.tsx]
import React from 'react';
export function ComponentWithUnion(props) {
return React.createElement("h1", null);
return /*#__PURE__*/ React.createElement("h1", null);
}
export function HereIsTheError() {
return React.createElement(ComponentWithUnion, {
return /*#__PURE__*/ React.createElement(ComponentWithUnion, {
multi: !1,
value: 's',
onChange: function(val) {

View File

@ -3,7 +3,7 @@ var B, A, B1, D, A1;
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
(B1 = B || (B = {})).a = A, D = function(_B_a_C) {
(B1 = B || (B = {})).a = A, D = /*#__PURE__*/ function(_B_a_C) {
_inherits(D, _B_a_C);
var _super = _create_super(D);
function D() {

View File

@ -1,6 +1,6 @@
//// [classAbstractAsIdentifier.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
new (function() {
new /*#__PURE__*/ (function() {
function abstract() {
_class_call_check(this, abstract);
}

View File

@ -4,7 +4,7 @@ import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var A = function A() {
_class_call_check(this, A);
}, B = function(A) {
}, B = /*#__PURE__*/ function(A) {
_inherits(B, A);
var _super = _create_super(B);
function B() {

View File

@ -4,7 +4,7 @@ import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var A = function A() {
_class_call_check(this, A);
}, B = function(A) {
}, B = /*#__PURE__*/ function(A) {
_inherits(B, A);
var _super = _create_super(B);
function B() {

View File

@ -5,7 +5,7 @@ import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
M1 = M || (M = {}), A = function A() {
_class_call_check(this, A);
}, M1.A = A, B = function(A) {
}, M1.A = A, B = /*#__PURE__*/ function(A) {
_inherits(B, A);
var _super = _create_super(B);
function B() {

View File

@ -4,14 +4,14 @@ import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var A = function A() {
_class_call_check(this, A);
}, B = function(A) {
}, B = /*#__PURE__*/ function(A) {
_inherits(B, A);
var _super = _create_super(B);
function B() {
return _class_call_check(this, B), _super.apply(this, arguments);
}
return B;
}(A), C = function(B) {
}(A), C = /*#__PURE__*/ function(B) {
_inherits(C, B);
var _super = _create_super(C);
function C() {

View File

@ -4,7 +4,7 @@ import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var A = function A() {
_class_call_check(this, A);
}, B = function(A) {
}, B = /*#__PURE__*/ function(A) {
_inherits(B, A);
var _super = _create_super(B);
function B() {
@ -13,7 +13,7 @@ var A = function A() {
return B.prototype.foo = function() {
return 1;
}, B;
}(A), C = function(A) {
}(A), C = /*#__PURE__*/ function(A) {
_inherits(C, A);
var _super = _create_super(C);
function C() {

View File

@ -14,7 +14,7 @@ Wagon.circle = function(wagons) {
}, Wagon.prototype.speed = function() {
return this.numberOxen / this.weight();
};
var db = new (function(Wagon) {
var db = new /*#__PURE__*/ (function(Wagon) {
_inherits(Sql, Wagon);
var _super = _create_super(Sql);
function Sql() {
@ -26,12 +26,12 @@ var db = new (function(Wagon) {
_get(_get_prototype_of(Sql.prototype), "speed", this).call(this), _get(_get_prototype_of(Sql.prototype), "weight", this).call(this);
}, Sql;
}(Wagon))();
db.numberOxen = db.foonly, Dragon;
db.numberOxen = db.foonly, /*#__PURE__*/ Dragon;
//// [second.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var c = new (function(Wagon1) {
var c = new /*#__PURE__*/ (function(Wagon1) {
_inherits(Conestoga, Wagon1);
var _super = _create_super(Conestoga);
function Conestoga(drunkOO) {
@ -50,7 +50,7 @@ import { _ as _create_super } from "@swc/helpers/_/_create_super";
function Soup(flavour) {
this.flavour = flavour;
}
var Chowder = function(Soup) {
var Chowder = /*#__PURE__*/ function(Soup) {
_inherits(Chowder, Soup);
var _super = _create_super(Chowder);
function Chowder() {

View File

@ -2,21 +2,21 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var BaseA = function() {
var BaseA = /*#__PURE__*/ function() {
function BaseA(x) {
_class_call_check(this, BaseA), this.x = x;
}
return BaseA.prototype.createInstance = function() {
new BaseA(1);
}, BaseA;
}(), BaseB = function() {
}(), BaseB = /*#__PURE__*/ function() {
function BaseB(x) {
_class_call_check(this, BaseB), this.x = x;
}
return BaseB.prototype.createInstance = function() {
new BaseB(2);
}, BaseB;
}(), BaseC = function() {
}(), BaseC = /*#__PURE__*/ function() {
function BaseC(x) {
_class_call_check(this, BaseC), this.x = x;
}
@ -25,7 +25,7 @@ var BaseA = function() {
}, BaseC.staticInstance = function() {
new BaseC(4);
}, BaseC;
}(), DerivedA = function(BaseA1) {
}(), DerivedA = /*#__PURE__*/ function(BaseA1) {
_inherits(DerivedA, BaseA1);
var _super = _create_super(DerivedA);
function DerivedA(x) {
@ -40,7 +40,7 @@ var BaseA = function() {
}, DerivedA.staticBaseInstance = function() {
new BaseA(7);
}, DerivedA;
}(BaseA), DerivedB = function(BaseB1) {
}(BaseA), DerivedB = /*#__PURE__*/ function(BaseB1) {
_inherits(DerivedB, BaseB1);
var _super = _create_super(DerivedB);
function DerivedB(x) {
@ -55,7 +55,7 @@ var BaseA = function() {
}, DerivedB.staticBaseInstance = function() {
new BaseB(9);
}, DerivedB;
}(BaseB), DerivedC = function(BaseC1) {
}(BaseB), DerivedC = /*#__PURE__*/ function(BaseC1) {
_inherits(DerivedC, BaseC1);
var _super = _create_super(DerivedC);
function DerivedC(x) {

View File

@ -2,7 +2,7 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var x, StringTreeCollection = function(StringTreeCollectionBase) {
var x, StringTreeCollection = /*#__PURE__*/ function(StringTreeCollectionBase) {
_inherits(StringTreeCollection, StringTreeCollectionBase);
var _super = _create_super(StringTreeCollection);
function StringTreeCollection() {

View File

@ -2,7 +2,7 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var c = new (function(_superClass) {
var c = new /*#__PURE__*/ (function(_superClass) {
_inherits(C, _superClass);
var _super = _create_super(C);
function C() {
@ -10,7 +10,7 @@ var c = new (function(_superClass) {
return _class_call_check(this, C), _this = _super.apply(this, arguments), _this.c = 3, _this;
}
return C;
}(function(_superClass) {
}(/*#__PURE__*/ function(_superClass) {
_inherits(_class, _superClass);
var _super = _create_super(_class);
function _class() {

View File

@ -1,6 +1,6 @@
//// [classExpression4.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var C = function() {
var C = /*#__PURE__*/ function() {
function C1() {
_class_call_check(this, C1);
}

View File

@ -1,6 +1,6 @@
//// [classExpression5.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
new (function() {
new /*#__PURE__*/ (function() {
function _class() {
_class_call_check(this, _class);
}

View File

@ -3,4 +3,4 @@ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _wrap_native_super } from "@swc/helpers/_/_wrap_native_super";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
_wrap_native_super(Object), _wrap_native_super(Function), _wrap_native_super(String), _wrap_native_super(Boolean), _wrap_native_super(Number), _wrap_native_super(Date), _wrap_native_super(RegExp), _wrap_native_super(Error), _wrap_native_super(Array), _wrap_native_super(Array);
/*#__PURE__*/ _wrap_native_super(Object), /*#__PURE__*/ _wrap_native_super(Function), /*#__PURE__*/ _wrap_native_super(String), /*#__PURE__*/ _wrap_native_super(Boolean), /*#__PURE__*/ _wrap_native_super(Number), /*#__PURE__*/ _wrap_native_super(Date), /*#__PURE__*/ _wrap_native_super(RegExp), /*#__PURE__*/ _wrap_native_super(Error), /*#__PURE__*/ _wrap_native_super(Array), /*#__PURE__*/ _wrap_native_super(Array);

View File

@ -2,28 +2,28 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var d, d2, D = function(C) {
var d, d2, D = /*#__PURE__*/ function(C) {
_inherits(D, C);
var _super = _create_super(D);
function D() {
return _class_call_check(this, D), _super.apply(this, arguments);
}
return D;
}(function() {
}(/*#__PURE__*/ function() {
function C() {
_class_call_check(this, C);
}
return C.prototype.thing = function() {}, C.other = function() {}, C;
}());
d.foo, d.bar, d.thing(), D.other();
var D2 = function(C2) {
var D2 = /*#__PURE__*/ function(C2) {
_inherits(D2, C2);
var _super = _create_super(D2);
function D2() {
return _class_call_check(this, D2), _super.apply(this, arguments);
}
return D2;
}(function() {
}(/*#__PURE__*/ function() {
function C2() {
_class_call_check(this, C2);
}

View File

@ -2,4 +2,4 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
Base, getBase(), getBase(), getBase(), getBase(), getBadBase();
/*#__PURE__*/ Base, /*#__PURE__*/ getBase(), /*#__PURE__*/ getBase(), /*#__PURE__*/ getBase(), /*#__PURE__*/ getBase(), /*#__PURE__*/ getBadBase();

View File

@ -2,4 +2,4 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
C1, D1, E1;
/*#__PURE__*/ C1, /*#__PURE__*/ D1, /*#__PURE__*/ E1;

View File

@ -2,42 +2,42 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var E = function(D) {
var E = /*#__PURE__*/ function(D) {
_inherits(E, D);
var _super = _create_super(E);
function E() {
return _class_call_check(this, E), _super.apply(this, arguments);
}
return E;
}(function(C) {
}(/*#__PURE__*/ function(C) {
_inherits(D, C);
var _super = _create_super(D);
function D() {
return _class_call_check(this, D), _super.apply(this, arguments);
}
return D;
}(function(E) {
}(/*#__PURE__*/ function(E) {
_inherits(C, E);
var _super = _create_super(C);
function C() {
return _class_call_check(this, C), _super.apply(this, arguments);
}
return C;
}(E))), E2 = function(D2) {
}(E))), E2 = /*#__PURE__*/ function(D2) {
_inherits(E2, D2);
var _super = _create_super(E2);
function E2() {
return _class_call_check(this, E2), _super.apply(this, arguments);
}
return E2;
}(function(C2) {
}(/*#__PURE__*/ function(C2) {
_inherits(D2, C2);
var _super = _create_super(D2);
function D2() {
return _class_call_check(this, D2), _super.apply(this, arguments);
}
return D2;
}(function(E2) {
}(/*#__PURE__*/ function(E2) {
_inherits(C2, E2);
var _super = _create_super(C2);
function C2() {

View File

@ -2,7 +2,7 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var M, D, N, E, P, Q, C2, P1, D2, Q1, E2, M1, N1, O, C = function(_N_E) {
var M, D, N, E, P, Q, C2, P1, D2, Q1, E2, M1, N1, O, C = /*#__PURE__*/ function(_N_E) {
_inherits(C, _N_E);
var _super = _create_super(C);
function C() {
@ -10,35 +10,35 @@ var M, D, N, E, P, Q, C2, P1, D2, Q1, E2, M1, N1, O, C = function(_N_E) {
}
return C;
}(N1.E);
M = M1 || (M1 = {}), D = function(C) {
M = M1 || (M1 = {}), D = /*#__PURE__*/ function(C) {
_inherits(D, C);
var _super = _create_super(D);
function D() {
return _class_call_check(this, D), _super.apply(this, arguments);
}
return D;
}(C), M.D = D, N = N1 || (N1 = {}), E = function(_M_D) {
}(C), M.D = D, N = N1 || (N1 = {}), E = /*#__PURE__*/ function(_M_D) {
_inherits(E, _M_D);
var _super = _create_super(E);
function E() {
return _class_call_check(this, E), _super.apply(this, arguments);
}
return E;
}(M1.D), N.E = E, O || (O = {}), C2 = function(_Q_E2) {
}(M1.D), N.E = E, O || (O = {}), C2 = /*#__PURE__*/ function(_Q_E2) {
_inherits(C2, _Q_E2);
var _super = _create_super(C2);
function C2() {
return _class_call_check(this, C2), _super.apply(this, arguments);
}
return C2;
}(Q.E2), P1 = P || (P = {}), D2 = function(C2) {
}(Q.E2), P1 = P || (P = {}), D2 = /*#__PURE__*/ function(C2) {
_inherits(D2, C2);
var _super = _create_super(D2);
function D2() {
return _class_call_check(this, D2), _super.apply(this, arguments);
}
return D2;
}(C2), P1.D2 = D2, Q1 = Q || (Q = {}), E2 = function(_P_D2) {
}(C2), P1.D2 = D2, Q1 = Q || (Q = {}), E2 = /*#__PURE__*/ function(_P_D2) {
_inherits(E2, _P_D2);
var _super = _create_super(E2);
function E2() {

View File

@ -2,29 +2,29 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
E;
/*#__PURE__*/ E;
//// [classExtendsItselfIndirectly_file2.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
C;
/*#__PURE__*/ C;
//// [classExtendsItselfIndirectly_file3.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
D;
/*#__PURE__*/ D;
//// [classExtendsItselfIndirectly_file4.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
E2;
/*#__PURE__*/ E2;
//// [classExtendsItselfIndirectly_file5.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
C2;
/*#__PURE__*/ C2;
//// [classExtendsItselfIndirectly_file6.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
D2;
/*#__PURE__*/ D2;

View File

@ -1,7 +1,7 @@
//// [classPropertyAsPrivate.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _create_class } from "@swc/helpers/_/_create_class";
var c, C = function() {
var c, C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C);
}

View File

@ -1,7 +1,7 @@
//// [classPropertyAsProtected.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _create_class } from "@swc/helpers/_/_create_class";
var c, C = function() {
var c, C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C);
}

View File

@ -1,7 +1,7 @@
//// [classPropertyIsPublicByDefault.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _create_class } from "@swc/helpers/_/_create_class";
var c, C = function() {
var c, C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C);
}

View File

@ -3,7 +3,7 @@ let friendA;
import { _ as _class_private_field_get } from "@swc/helpers/_/_class_private_field_get";
import { _ as _class_private_field_init } from "@swc/helpers/_/_class_private_field_init";
import { _ as _class_private_field_set } from "@swc/helpers/_/_class_private_field_set";
var _x = new WeakMap();
var _x = /*#__PURE__*/ new WeakMap();
friendA = {
getX: (obj)=>_class_private_field_get(obj, _x),
setX (obj, value) {

View File

@ -8,7 +8,7 @@ var B = function B() {
_class_call_check(this, B);
};
B.a = 1, B.b = 2;
var C = function(B) {
var C = /*#__PURE__*/ function(B) {
_inherits(C, B);
var _super = _create_super(C);
function C() {

View File

@ -1,6 +1,6 @@
//// [classStaticBlockUseBeforeDef3.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
(function() {
/*#__PURE__*/ (function() {
function A() {
_class_call_check(this, A);
}
@ -9,7 +9,7 @@ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
}, A;
})().doSomething(), console.log(FOO);
var FOO = "FOO";
console.log(FOO), function() {
console.log(FOO), /*#__PURE__*/ function() {
function CFA() {
_class_call_check(this, CFA);
}

View File

@ -2,7 +2,7 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
var C = function(Base) {
var C = /*#__PURE__*/ function(Base) {
_inherits(C, Base);
var _super = _create_super(C);
function C() {
@ -13,7 +13,7 @@ var C = function(Base) {
_class_call_check(this, Base);
});
new C(), new C(1);
var D = function(Base2) {
var D = /*#__PURE__*/ function(Base2) {
_inherits(D, Base2);
var _super = _create_super(D);
function D() {

View File

@ -7,7 +7,7 @@ NonGeneric || (NonGeneric = {}), new (C = function C(x) {
_class_call_check(this, C);
})(), new C(''), new (C2 = function C2(x) {
_class_call_check(this, C2);
})(), new C2(''), new C2(1), new (D = function(C2) {
})(), new C2(''), new C2(1), new (D = /*#__PURE__*/ function(C2) {
_inherits(D, C2);
var _super = _create_super(D);
function D() {
@ -18,7 +18,7 @@ NonGeneric || (NonGeneric = {}), new (C = function C(x) {
_class_call_check(this, C);
})(), new C1(''), new (C21 = function C2(x) {
_class_call_check(this, C2);
})(), new C21(''), new C21(1, 2), new (D1 = function(C2) {
})(), new C21(''), new C21(1, 2), new (D1 = /*#__PURE__*/ function(C2) {
_inherits(D, C2);
var _super = _create_super(D);
function D() {

View File

@ -1,6 +1,6 @@
//// [classWithPrivateProperty.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var C = function() {
var C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C), this.a = '', this.b = '', this.d = function() {
return '';

View File

@ -2,7 +2,7 @@
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _create_super } from "@swc/helpers/_/_create_super";
(function() {
/*#__PURE__*/ (function() {
function C() {
_class_call_check(this, C), this.a = '', this.b = '', this.d = function() {
return '';

View File

@ -1,6 +1,6 @@
//// [classWithPublicProperty.ts]
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
var C = function() {
var C = /*#__PURE__*/ function() {
function C() {
_class_call_check(this, C), this.a = '', this.b = '', this.d = function() {
return '';

View File

@ -5,7 +5,7 @@ import { _ as _create_super } from "@swc/helpers/_/_create_super";
var _class, _class1, C = function C() {
_class_call_check(this, C);
};
(void 0)[((_class = function(C) {
(void 0)[/*#__PURE__*/ ((_class = function(C) {
_inherits(_class, C);
var _super = _create_super(_class);
function _class() {
@ -13,7 +13,7 @@ var _class, _class1, C = function C() {
}
return _class;
}(C)).x = 1, _class).x], function(param) {
param[((_class1 = function(C) {
param[/*#__PURE__*/ ((_class1 = function(C) {
_inherits(_class, C);
var _super = _create_super(_class);
function _class() {

View File

@ -6,7 +6,7 @@ var C = function C() {
_class_call_check(this, C);
};
!function() {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function(C) {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : /*#__PURE__*/ function(C) {
_inherits(_class, C);
var _super = _create_super(_class);
function _class() {
@ -15,7 +15,7 @@ var C = function C() {
return _class;
}(C).x = 1;
}(), function() {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function(C) {
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : /*#__PURE__*/ function(C) {
_inherits(_class, C);
var _super = _create_super(_class);
function _class() {

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