feat(es/compat): Use sequence expressions instead of iife in classes pass (#3773)

This commit is contained in:
Austaras 2022-03-01 15:10:57 +08:00 committed by GitHub
parent 1ef8f3749b
commit 5b6beca1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
574 changed files with 2849 additions and 2864 deletions

View File

@ -1,16 +1,13 @@
var _ClassB;
var ClassA = function ClassA() {
"use strict";
};
module.exports = (function() {
var ClassB = /*#__PURE__*/ function() {
"use strict";
function ClassB() {}
var _proto = ClassB.prototype;
_proto.it = function it() {
this.bb = new ClassB.MyA();
};
return ClassB;
}();
ClassB.MyA = ClassA;
module.exports = (_ClassB = /*#__PURE__*/ (function() {
"use strict";
function ClassB() {}
var _proto = ClassB.prototype;
_proto.it = function it() {
this.bb = new ClassB.MyA();
};
return ClassB;
})();
})(), _ClassB.MyA = ClassA, _ClassB);

View File

@ -1,11 +1,8 @@
var a = function() {};
module.exports = (function() {
var b = function() {
"use strict";
function b() {}
return b.prototype.it = function() {
this.bb = new b.MyA();
}, b;
}();
return b.MyA = a, b;
})();
var a;
module.exports = ((a = (function() {
"use strict";
function a() {}
return a.prototype.it = function() {
this.bb = new a.MyA();
}, a;
})()).MyA = function() {}, a);

View File

@ -11,7 +11,7 @@ function _defineProperty(obj, key, value) {
}
return obj;
}
var _ref = `lit${"lit"}`, _ref1 = `tpl${`tpl`}`, _ref2 = `lit${1 + 1}`, _ref3 = `complex${"123".length()}`;
let _ref = `lit${"lit"}`, _ref1 = `tpl${`tpl`}`, _ref2 = `lit${1 + 1}`, _ref3 = `complex${"123".length()}`;
class Foo {
constructor(){
_defineProperty(this, 1, 2);

View File

@ -1,4 +1,4 @@
var tmp = Symbol.iterator;
let _iterator = Symbol.iterator;
//@target: ES5
// In ES3/5, you cannot for...of over an arbitrary iterable.
class StringIterator {
@ -8,7 +8,7 @@ class StringIterator {
value: ""
};
}
[tmp]() {
[_iterator]() {
return this;
}
}

View File

@ -1,4 +1,4 @@
var tmp = Symbol.iterator;
let _iterator = Symbol.iterator;
for (var v of new class {
next() {
return {
@ -6,7 +6,7 @@ for (var v of new class {
value: ""
};
}
[tmp]() {
[_iterator]() {
return this;
}
});

View File

@ -17,7 +17,7 @@ function _createClass(Constructor, protoProps, staticProps) {
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
var tmp = Symbol.iterator;
var _iterator = Symbol.iterator;
var StringIterator = //@target: ES5
// In ES3/5, you cannot for...of over an arbitrary iterable.
/*#__PURE__*/ function() {
@ -36,7 +36,7 @@ var StringIterator = //@target: ES5
}
},
{
key: tmp,
key: _iterator,
value: function value() {
return this;
}
@ -46,7 +46,7 @@ var StringIterator = //@target: ES5
}();
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
try {
for(var _iterator = (new StringIterator)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
for(var _iterator1 = (new StringIterator)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator1.next()).done); _iteratorNormalCompletion = true){
var v = _step.value;
}
} catch (err) {
@ -54,8 +54,8 @@ try {
_iteratorError = err;
} finally{
try {
if (!_iteratorNormalCompletion && _iterator.return != null) {
_iterator.return();
if (!_iteratorNormalCompletion && _iterator1.return != null) {
_iterator1.return();
}
} finally{
if (_didIteratorError) {

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var tmp = Symbol.iterator, StringIterator = function() {
var _iterator = Symbol.iterator, StringIterator = function() {
"use strict";
var Constructor, protoProps, staticProps;
function StringIterator() {
@ -23,7 +23,7 @@ var tmp = Symbol.iterator, StringIterator = function() {
}
},
{
key: tmp,
key: _iterator,
value: function() {
return this;
}
@ -31,12 +31,12 @@ var tmp = Symbol.iterator, StringIterator = function() {
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), StringIterator;
}(), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
try {
for(var _step, _iterator = (new StringIterator)[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)_step.value;
for(var _step, _iterator1 = (new StringIterator)[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator1.next()).done); _iteratorNormalCompletion = !0)_step.value;
} catch (err) {
_didIteratorError = !0, _iteratorError = err;
} finally{
try {
_iteratorNormalCompletion || null == _iterator.return || _iterator.return();
_iteratorNormalCompletion || null == _iterator1.return || _iterator1.return();
} finally{
if (_didIteratorError) throw _iteratorError;
}

View File

@ -2,9 +2,9 @@
var M;
(function(M1) {
var Symbol;
var tmp = Symbol.iterator;
let _iterator = Symbol.iterator;
class C {
[tmp]() {}
[_iterator]() {}
}
M1.C = C;
(new C)[Symbol.iterator];

View File

@ -1,8 +1,9 @@
var M;
!function(M1) {
var Symbol, tmp = Symbol.iterator;
var Symbol;
let _iterator = Symbol.iterator;
class C {
[tmp]() {}
[_iterator]() {}
}
M1.C = C, (new C)[Symbol.iterator];
}(M || (M = {})), (new M.C)[Symbol.iterator];

View File

@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) {
var M;
(function(M1) {
var Symbol;
var tmp = Symbol.iterator;
var _iterator = Symbol.iterator;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -29,7 +29,7 @@ var M;
}
_createClass(C, [
{
key: tmp,
key: _iterator,
value: function value() {}
}
]);

View File

@ -6,7 +6,7 @@ function _defineProperties(target, props) {
}
}
!function(M1) {
var Symbol, tmp = Symbol.iterator, C = function() {
var Symbol, _iterator = Symbol.iterator, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -16,7 +16,7 @@ function _defineProperties(target, props) {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _iterator,
value: function() {}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -1,7 +1,7 @@
//@target: ES5
var Symbol;
var tmp = Symbol.iterator;
let _iterator = Symbol.iterator;
class C {
[tmp]() {}
[_iterator]() {}
}
(new C)[Symbol.iterator];

View File

@ -19,7 +19,7 @@ function _createClass(Constructor, protoProps, staticProps) {
}
//@target: ES5
var Symbol;
var tmp = Symbol.iterator;
var _iterator = Symbol.iterator;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -27,7 +27,7 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _iterator,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var Symbol, tmp = Symbol.iterator, C = function() {
var Symbol, _iterator = Symbol.iterator, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,7 +14,7 @@ var Symbol, tmp = Symbol.iterator, C = function() {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _iterator,
value: function() {}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -1,7 +1,7 @@
//@target: ES5
var Symbol;
var tmp = Symbol.iterator;
let _iterator = Symbol.iterator;
class C {
[tmp]() {}
[_iterator]() {}
}
(new C)[Symbol.iterator];

View File

@ -19,7 +19,7 @@ function _createClass(Constructor, protoProps, staticProps) {
}
//@target: ES5
var Symbol;
var tmp = Symbol.iterator;
var _iterator = Symbol.iterator;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -27,7 +27,7 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _iterator,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var Symbol, tmp = Symbol.iterator, C = function() {
var Symbol, _iterator = Symbol.iterator, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,7 +14,7 @@ var Symbol, tmp = Symbol.iterator, C = function() {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _iterator,
value: function() {}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -1,8 +1,8 @@
//@target: ES5
var Symbol;
var tmp = Symbol.iterator;
let _iterator = Symbol.iterator;
class C {
[tmp]() {}
[_iterator]() {}
}
(new C)[Symbol.iterator](0) // Should error
;

View File

@ -19,7 +19,7 @@ function _createClass(Constructor, protoProps, staticProps) {
}
//@target: ES5
var Symbol;
var tmp = Symbol.iterator;
var _iterator = Symbol.iterator;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -27,7 +27,7 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _iterator,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var Symbol, tmp = Symbol.iterator, C = function() {
var Symbol, _iterator = Symbol.iterator, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,7 +14,7 @@ var Symbol, tmp = Symbol.iterator, C = function() {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _iterator,
value: function() {}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -1,6 +1,6 @@
var tmp = Symbol.iterator;
let _iterator = Symbol.iterator;
//@target: ES5
class C {
[tmp]() {}
[_iterator]() {}
}
(new C)[Symbol.iterator];

View File

@ -17,7 +17,7 @@ function _createClass(Constructor, protoProps, staticProps) {
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
var tmp = Symbol.iterator;
var _iterator = Symbol.iterator;
var C = //@target: ES5
/*#__PURE__*/ function() {
"use strict";
@ -26,7 +26,7 @@ var C = //@target: ES5
}
_createClass(C, [
{
key: tmp,
key: _iterator,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var tmp = Symbol.iterator, C = function() {
var _iterator = Symbol.iterator, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,7 +14,7 @@ var tmp = Symbol.iterator, C = function() {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _iterator,
value: function() {}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -1,7 +1,7 @@
//@target: ES5
var Symbol;
var tmp = Symbol.iterator;
let _iterator = Symbol.iterator;
class C {
[tmp]() {}
[_iterator]() {}
}
(new C)[Symbol.iterator];

View File

@ -19,7 +19,7 @@ function _createClass(Constructor, protoProps, staticProps) {
}
//@target: ES5
var Symbol;
var tmp = Symbol.iterator;
var _iterator = Symbol.iterator;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -27,7 +27,7 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _iterator,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var Symbol, tmp = Symbol.iterator, C = function() {
var Symbol, _iterator = Symbol.iterator, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,7 +14,7 @@ var Symbol, tmp = Symbol.iterator, C = function() {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _iterator,
value: function() {}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -1,5 +1,5 @@
var tmp = foo;
let _foo = foo;
// @target: es6
class C {
*[tmp]() {}
*[_foo]() {}
}

View File

@ -18,7 +18,7 @@ function _createClass(Constructor, protoProps, staticProps) {
return Constructor;
}
import regeneratorRuntime from "regenerator-runtime";
var tmp = foo;
var _foo = foo;
var C = // @target: es6
/*#__PURE__*/ function() {
"use strict";
@ -27,7 +27,7 @@ var C = // @target: es6
}
_createClass(C, [
{
key: tmp,
key: _foo,
value: regeneratorRuntime.mark(function value() {
return regeneratorRuntime.wrap(function value$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -5,7 +5,7 @@ function _defineProperties(target, props) {
}
}
import regeneratorRuntime from "regenerator-runtime";
var tmp = foo, C = function() {
var _foo = foo, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -15,7 +15,7 @@ var tmp = foo, C = function() {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _foo,
value: regeneratorRuntime.mark(function value() {
return regeneratorRuntime.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){

View File

@ -48,7 +48,7 @@ class E {
}
class F {
constructor(){
this.Inner = class _class extends F {
this.Inner = class extends F {
constructor(...args){
super(...args);
this.p2 = this.p1;
@ -60,7 +60,7 @@ class F {
class G {
constructor(p1){
this.p1 = p1;
this.Inner = class _class extends G {
this.Inner = class extends G {
constructor(...args){
super(...args);
this.p2 = this.p1;

View File

@ -3,7 +3,7 @@
// @allowJs: true
// @Filename: bug24252.js
var A = {};
A.B = class _class {
A.B = class {
m() {
/** @type {string[]} */ var x = [];
/** @type {number[]} */ var y;

View File

@ -1,4 +1,4 @@
let C = class _class extends class _class extends class _class {
let C = class extends class extends class {
constructor(){
this.a = 1;
}

View File

@ -69,26 +69,26 @@ function _createSuper(Derived) {
return _possibleConstructorReturn(this, result);
};
}
var C = /*#__PURE__*/ function(__class) {
var C = /*#__PURE__*/ function(_super) {
"use strict";
_inherits(_class, __class);
var _super = _createSuper(_class);
_inherits(_class, _super);
var _super1 = _createSuper(_class);
function _class() {
_classCallCheck(this, _class);
var _this;
_this = _super.apply(this, arguments);
_this = _super1.apply(this, arguments);
_this.c = 3;
return _this;
}
return _class;
}(/*#__PURE__*/ function(__class) {
}(/*#__PURE__*/ function(_super) {
"use strict";
_inherits(_class, __class);
var _super = _createSuper(_class);
_inherits(_class, _super);
var _super2 = _createSuper(_class);
function _class() {
_classCallCheck(this, _class);
var _this;
_this = _super.apply(this, arguments);
_this = _super2.apply(this, arguments);
_this.b = 2;
return _this;
}

View File

@ -44,22 +44,22 @@ function _createSuper(Derived) {
})(self);
};
}
var c = new (function(__class) {
var c = new (function(_super) {
"use strict";
_inherits(_class, __class);
var _super = _createSuper(_class);
_inherits(_class, _super);
var _super1 = _createSuper(_class);
function _class() {
var _this;
return _classCallCheck(this, _class), _this = _super.apply(this, arguments), _this.c = 3, _this;
return _classCallCheck(this, _class), _this = _super1.apply(this, arguments), _this.c = 3, _this;
}
return _class;
}(function(__class) {
}(function(_super) {
"use strict";
_inherits(_class, __class);
var _super = _createSuper(_class);
_inherits(_class, _super);
var _super2 = _createSuper(_class);
function _class() {
var _this;
return _classCallCheck(this, _class), _this = _super.apply(this, arguments), _this.b = 2, _this;
return _classCallCheck(this, _class), _this = _super2.apply(this, arguments), _this.b = 2, _this;
}
return _class;
}(function _class() {

View File

@ -1,4 +1,4 @@
let C = class _class {
let C = class {
foo() {
return new C();
}

View File

@ -1,4 +1,4 @@
new class _class {
new class {
hi() {
return "Hi!";
}

View File

@ -1,5 +1,5 @@
// @target: es6
let C = class _class extends class _class extends class _class {
let C = class extends class extends class {
constructor(){
this.a = 1;
}

View File

@ -70,26 +70,26 @@ function _createSuper(Derived) {
};
}
// @target: es6
var C = /*#__PURE__*/ function(__class) {
var C = /*#__PURE__*/ function(_super) {
"use strict";
_inherits(_class, __class);
var _super = _createSuper(_class);
_inherits(_class, _super);
var _super1 = _createSuper(_class);
function _class() {
_classCallCheck(this, _class);
var _this;
_this = _super.apply(this, arguments);
_this = _super1.apply(this, arguments);
_this.c = 3;
return _this;
}
return _class;
}(/*#__PURE__*/ function(__class) {
}(/*#__PURE__*/ function(_super) {
"use strict";
_inherits(_class, __class);
var _super = _createSuper(_class);
_inherits(_class, _super);
var _super2 = _createSuper(_class);
function _class() {
_classCallCheck(this, _class);
var _this;
_this = _super.apply(this, arguments);
_this = _super2.apply(this, arguments);
_this.b = 2;
return _this;
}

View File

@ -44,22 +44,22 @@ function _createSuper(Derived) {
})(self);
};
}
var c = new (function(__class) {
var c = new (function(_super) {
"use strict";
_inherits(_class, __class);
var _super = _createSuper(_class);
_inherits(_class, _super);
var _super1 = _createSuper(_class);
function _class() {
var _this;
return _classCallCheck(this, _class), _this = _super.apply(this, arguments), _this.c = 3, _this;
return _classCallCheck(this, _class), _this = _super1.apply(this, arguments), _this.c = 3, _this;
}
return _class;
}(function(__class) {
}(function(_super) {
"use strict";
_inherits(_class, __class);
var _super = _createSuper(_class);
_inherits(_class, _super);
var _super2 = _createSuper(_class);
function _class() {
var _this;
return _classCallCheck(this, _class), _this = _super.apply(this, arguments), _this.b = 2, _this;
return _classCallCheck(this, _class), _this = _super2.apply(this, arguments), _this.b = 2, _this;
}
return _class;
}(function _class() {

View File

@ -1,25 +1,19 @@
var _class, _class1;
// @target: esnext, es2022, es2015, es5
function foo() {
return _class1 = (function() {
class _class2 {
}
var __ = {
writable: true,
value: (()=>{
const c = (_class = function() {
class _class3 {
}
var __ = {
writable: true,
value: (()=>{
// do
})()
};
return _class3;
}(), _class.bar = 2, _class);
})()
};
return _class2;
})(), _class1.foo = 1, _class1;
var _class2, __1;
return _class1 = (_class2 = class {
}, __1 = {
writable: true,
value: (()=>{
var _class3, __;
const c = (_class = (_class3 = class {
}, __ = {
writable: true,
value: (()=>{
// do
})()
}, _class3), _class.bar = 2, _class);
})()
}, _class2), _class1.foo = 1, _class1;
}

View File

@ -6,29 +6,23 @@ function _classCallCheck(instance, Constructor) {
var _class, _class1;
// @target: esnext, es2022, es2015, es5
function foo() {
return _class1 = (function() {
var _class2 = function _class2() {
"use strict";
_classCallCheck(this, _class2);
};
var __ = {
writable: true,
value: function() {
var c = (_class = function() {
var _class3 = function _class3() {
"use strict";
_classCallCheck(this, _class3);
};
var __ = {
writable: true,
value: function() {
// do
}()
};
return _class3;
}(), _class.bar = 2, _class);
}()
};
return _class2;
})(), _class1.foo = 1, _class1;
var _class2, __1;
return _class1 = (_class2 = function _class3() {
"use strict";
_classCallCheck(this, _class3);
}, __1 = {
writable: true,
value: (function() {
var _class4, __;
var c = (_class = (_class4 = function _class3() {
"use strict";
_classCallCheck(this, _class3);
}, __ = {
writable: true,
value: function() {
// do
}()
}, _class4), _class.bar = 2, _class);
})()
}, _class2), _class1.foo = 1, _class1;
}

View File

@ -1,28 +1,23 @@
var _Foo, __, __1, __2;
var _class;
// https://github.com/microsoft/TypeScript/issues/44872
void (_class = function() {
class Foo {
}
var __ = {
writable: true,
value: (()=>{
console.log(Foo.prop);
Foo.prop++;
})()
};
var __1 = {
writable: true,
value: (()=>{
console.log(Foo.prop);
Foo.prop++;
})()
};
var __2 = {
writable: true,
value: (()=>{
console.log(Foo.prop);
Foo.prop++;
})()
};
return Foo;
}(), _class.prop = 1, _class);
void (_class = (_Foo = class Foo {
}, __ = {
writable: true,
value: (()=>{
console.log(_Foo.prop);
_Foo.prop++;
})()
}, __1 = {
writable: true,
value: (()=>{
console.log(_Foo.prop);
_Foo.prop++;
})()
}, __2 = {
writable: true,
value: (()=>{
console.log(_Foo.prop);
_Foo.prop++;
})()
}, _Foo), _class.prop = 1, _class);

View File

@ -1,5 +1,3 @@
(function() {
class Foo {
}
return console.log(Foo.prop), Foo.prop++, console.log(Foo.prop), Foo.prop++, console.log(Foo.prop), Foo.prop++, Foo;
})().prop = 1;
var _Foo;
(_Foo = class {
}, console.log(_Foo.prop), _Foo.prop++, console.log(_Foo.prop), _Foo.prop++, console.log(_Foo.prop), _Foo.prop++, _Foo).prop = 1;

View File

@ -3,33 +3,28 @@ function _classCallCheck(instance, Constructor) {
throw new TypeError("Cannot call a class as a function");
}
}
var _Foo, __, __1, __2;
var _class;
// https://github.com/microsoft/TypeScript/issues/44872
void (_class = function() {
var Foo = function Foo() {
"use strict";
_classCallCheck(this, Foo);
};
var __ = {
writable: true,
value: function() {
console.log(Foo.prop);
Foo.prop++;
}()
};
var __1 = {
writable: true,
value: function() {
console.log(Foo.prop);
Foo.prop++;
}()
};
var __2 = {
writable: true,
value: function() {
console.log(Foo.prop);
Foo.prop++;
}()
};
return Foo;
}(), _class.prop = 1, _class);
void (_class = (_Foo = function Foo() {
"use strict";
_classCallCheck(this, Foo);
}, __ = {
writable: true,
value: function() {
console.log(_Foo.prop);
_Foo.prop++;
}()
}, __1 = {
writable: true,
value: function() {
console.log(_Foo.prop);
_Foo.prop++;
}()
}, __2 = {
writable: true,
value: function() {
console.log(_Foo.prop);
_Foo.prop++;
}()
}, _Foo), _class.prop = 1, _class);

View File

@ -1,9 +1,7 @@
(function() {
var Foo = function() {
"use strict";
!function(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}(this, Foo);
};
return console.log(Foo.prop), Foo.prop++, console.log(Foo.prop), Foo.prop++, console.log(Foo.prop), Foo.prop++, Foo;
})().prop = 1;
var _Foo;
(_Foo = function Foo() {
"use strict";
(function(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
})(this, Foo);
}, console.log(_Foo.prop), _Foo.prop++, console.log(_Foo.prop), _Foo.prop++, console.log(_Foo.prop), _Foo.prop++, _Foo).prop = 1;

View File

@ -10,7 +10,7 @@ const { K } = require("./mod1");
}
// @filename: mod1.js
var NS = {};
NS.K = class _class {
NS.K = class {
values() {
return new NS.K();
}

View File

@ -2,17 +2,17 @@
var s;
var n;
var a;
var tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = "", tmp6 = 0, tmp7 = a, tmp8 = true, tmp9 = `hello bye`, tmp10 = `hello ${a} bye`;
let _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = `hello ${a} bye`;
class C {
[tmp]() {}
[_s]() {}
[_n]() {}
static [tmp]() {}
[tmp1]() {}
static [tmp2]() {}
[tmp3]() {}
[tmp4]() {}
static [tmp5]() {}
[tmp6]() {}
[tmp7]() {}
static [tmp8]() {}
[tmp9]() {}
static [tmp10]() {}
[tmp2]() {}
static [""]() {}
[0]() {}
[_a]() {}
static [true]() {}
[`hello bye`]() {}
static [tmp3]() {}
}

View File

@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) {
var s;
var n;
var a;
var tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = "", tmp6 = 0, tmp7 = a, tmp8 = true, tmp9 = "hello bye", tmp10 = "hello ".concat(a, " bye");
var _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = "hello ".concat(a, " bye");
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -29,48 +29,48 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _s,
value: function value() {}
},
{
key: _n,
value: function value() {}
},
{
key: tmp1,
value: function value() {}
},
{
key: tmp3,
value: function value() {}
},
{
key: tmp4,
value: function value() {}
},
{
key: tmp6,
value: function value() {}
},
{
key: tmp7,
value: function value() {}
},
{
key: tmp9,
value: function value() {}
}
], [
{
key: tmp2,
value: function value() {}
},
{
key: tmp5,
key: 0,
value: function value() {}
},
{
key: tmp8,
key: _a,
value: function value() {}
},
{
key: tmp10,
key: "hello bye",
value: function value() {}
}
], [
{
key: tmp,
value: function value() {}
},
{
key: "",
value: function value() {}
},
{
key: true,
value: function value() {}
},
{
key: tmp3,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a, tmp6 = "hello ".concat(a, " bye"), C = function() {
var s, n, a, _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = "hello ".concat(a, " bye"), C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,7 +14,11 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _s,
value: function() {}
},
{
key: _n,
value: function() {}
},
{
@ -22,11 +26,7 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
value: function() {}
},
{
key: tmp3,
value: function() {}
},
{
key: tmp4,
key: tmp2,
value: function() {}
},
{
@ -34,7 +34,7 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
value: function() {}
},
{
key: tmp5,
key: _a,
value: function() {}
},
{
@ -43,7 +43,7 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
}
], staticProps = [
{
key: tmp2,
key: tmp,
value: function() {}
},
{
@ -55,7 +55,7 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
value: function() {}
},
{
key: tmp6,
key: tmp3,
value: function() {}
}
], protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -2,17 +2,17 @@
var s;
var n;
var a;
var tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = "", tmp6 = 0, tmp7 = a, tmp8 = true, tmp9 = `hello bye`, tmp10 = `hello ${a} bye`;
let _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = `hello ${a} bye`;
class C {
[tmp]() {}
[_s]() {}
[_n]() {}
static [tmp]() {}
[tmp1]() {}
static [tmp2]() {}
[tmp3]() {}
[tmp4]() {}
static [tmp5]() {}
[tmp6]() {}
[tmp7]() {}
static [tmp8]() {}
[tmp9]() {}
static [tmp10]() {}
[tmp2]() {}
static [""]() {}
[0]() {}
[_a]() {}
static [true]() {}
[`hello bye`]() {}
static [tmp3]() {}
}

View File

@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) {
var s;
var n;
var a;
var tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = "", tmp6 = 0, tmp7 = a, tmp8 = true, tmp9 = "hello bye", tmp10 = "hello ".concat(a, " bye");
var _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = "hello ".concat(a, " bye");
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -29,48 +29,48 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _s,
value: function value() {}
},
{
key: _n,
value: function value() {}
},
{
key: tmp1,
value: function value() {}
},
{
key: tmp3,
value: function value() {}
},
{
key: tmp4,
value: function value() {}
},
{
key: tmp6,
value: function value() {}
},
{
key: tmp7,
value: function value() {}
},
{
key: tmp9,
value: function value() {}
}
], [
{
key: tmp2,
value: function value() {}
},
{
key: tmp5,
key: 0,
value: function value() {}
},
{
key: tmp8,
key: _a,
value: function value() {}
},
{
key: tmp10,
key: "hello bye",
value: function value() {}
}
], [
{
key: tmp,
value: function value() {}
},
{
key: "",
value: function value() {}
},
{
key: true,
value: function value() {}
},
{
key: tmp3,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a, tmp6 = "hello ".concat(a, " bye"), C = function() {
var s, n, a, _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = "hello ".concat(a, " bye"), C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,7 +14,11 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _s,
value: function() {}
},
{
key: _n,
value: function() {}
},
{
@ -22,11 +26,7 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
value: function() {}
},
{
key: tmp3,
value: function() {}
},
{
key: tmp4,
key: tmp2,
value: function() {}
},
{
@ -34,7 +34,7 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
value: function() {}
},
{
key: tmp5,
key: _a,
value: function() {}
},
{
@ -43,7 +43,7 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
}
], staticProps = [
{
key: tmp2,
key: tmp,
value: function() {}
},
{
@ -55,7 +55,7 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
value: function() {}
},
{
key: tmp6,
key: tmp3,
value: function() {}
}
], protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -1,11 +1,11 @@
// @target: es5
var b;
var tmp = b, tmp1 = true, tmp2 = [], tmp3 = {}, tmp4 = undefined, tmp5 = null;
let _b = b, _undefined = undefined;
class C {
[tmp]() {}
static [tmp1]() {}
[tmp2]() {}
static [tmp3]() {}
[tmp4]() {}
static [tmp5]() {}
[_b]() {}
static [true]() {}
[[]]() {}
static [{}]() {}
[_undefined]() {}
static [null]() {}
}

View File

@ -19,7 +19,7 @@ function _createClass(Constructor, protoProps, staticProps) {
}
// @target: es5
var b;
var tmp = b, tmp1 = true, tmp2 = [], tmp3 = {}, tmp4 = undefined, tmp5 = null;
var _b = b, _undefined = undefined;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -27,28 +27,28 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _b,
value: function value() {}
},
{
key: tmp2,
key: [],
value: function value() {}
},
{
key: tmp4,
key: _undefined,
value: function value() {}
}
], [
{
key: tmp1,
key: true,
value: function value() {}
},
{
key: tmp3,
key: {},
value: function value() {}
},
{
key: tmp5,
key: null,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var tmp = void 0, tmp1 = [], tmp2 = {}, tmp3 = void 0, C = function() {
var _b = void 0, _undefined = void 0, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -12,31 +12,31 @@ var tmp = void 0, tmp1 = [], tmp2 = {}, tmp3 = void 0, C = function() {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}(this, C);
}
return Constructor = C, protoProps = [
{
key: tmp,
value: function() {}
},
{
key: tmp1,
value: function() {}
},
{
key: tmp3,
value: function() {}
}
], staticProps = [
return Constructor = C, staticProps = [
{
key: !0,
value: function() {}
},
{
key: tmp2,
key: {},
value: function() {}
},
{
key: null,
value: function() {}
}
], protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;
], protoProps = [
{
key: _b,
value: function() {}
},
{
key: [],
value: function() {}
},
{
key: _undefined,
value: function() {}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;
}();

View File

@ -1,11 +1,11 @@
// @target: es6
var b;
var tmp = b, tmp1 = true, tmp2 = [], tmp3 = {}, tmp4 = undefined, tmp5 = null;
let _b = b, _undefined = undefined;
class C {
[tmp]() {}
static [tmp1]() {}
[tmp2]() {}
static [tmp3]() {}
[tmp4]() {}
static [tmp5]() {}
[_b]() {}
static [true]() {}
[[]]() {}
static [{}]() {}
[_undefined]() {}
static [null]() {}
}

View File

@ -19,7 +19,7 @@ function _createClass(Constructor, protoProps, staticProps) {
}
// @target: es6
var b;
var tmp = b, tmp1 = true, tmp2 = [], tmp3 = {}, tmp4 = undefined, tmp5 = null;
var _b = b, _undefined = undefined;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -27,28 +27,28 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _b,
value: function value() {}
},
{
key: tmp2,
key: [],
value: function value() {}
},
{
key: tmp4,
key: _undefined,
value: function value() {}
}
], [
{
key: tmp1,
key: true,
value: function value() {}
},
{
key: tmp3,
key: {},
value: function value() {}
},
{
key: tmp5,
key: null,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var tmp = void 0, tmp1 = [], tmp2 = {}, tmp3 = void 0, C = function() {
var _b = void 0, _undefined = void 0, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -12,31 +12,31 @@ var tmp = void 0, tmp1 = [], tmp2 = {}, tmp3 = void 0, C = function() {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}(this, C);
}
return Constructor = C, protoProps = [
{
key: tmp,
value: function() {}
},
{
key: tmp1,
value: function() {}
},
{
key: tmp3,
value: function() {}
}
], staticProps = [
return Constructor = C, staticProps = [
{
key: !0,
value: function() {}
},
{
key: tmp2,
key: {},
value: function() {}
},
{
key: null,
value: function() {}
}
], protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;
], protoProps = [
{
key: _b,
value: function() {}
},
{
key: [],
value: function() {}
},
{
key: _undefined,
value: function() {}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;
}();

View File

@ -2,9 +2,9 @@
var p1;
var p2;
var p3;
var tmp = p1, tmp1 = p2, tmp2 = p3;
let _p1 = p1, _p2 = p2, _p3 = p3;
class C {
[tmp]() {}
[tmp1]() {}
[tmp2]() {}
[_p1]() {}
[_p2]() {}
[_p3]() {}
}

View File

@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) {
var p1;
var p2;
var p3;
var tmp = p1, tmp1 = p2, tmp2 = p3;
var _p1 = p1, _p2 = p2, _p3 = p3;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -29,15 +29,15 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _p1,
value: function value() {}
},
{
key: tmp1,
key: _p2,
value: function value() {}
},
{
key: tmp2,
key: _p3,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var p2, p3, tmp = void 0, tmp1 = p2, tmp2 = p3, C = function() {
var p2, p3, _p1 = void 0, _p2 = p2, _p3 = p3, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,15 +14,15 @@ var p2, p3, tmp = void 0, tmp1 = p2, tmp2 = p3, C = function() {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _p1,
value: function() {}
},
{
key: tmp1,
key: _p2,
value: function() {}
},
{
key: tmp2,
key: _p3,
value: function() {}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -2,9 +2,9 @@
var p1;
var p2;
var p3;
var tmp = p1, tmp1 = p2, tmp2 = p3;
let _p1 = p1, _p2 = p2, _p3 = p3;
class C {
[tmp]() {}
[tmp1]() {}
[tmp2]() {}
[_p1]() {}
[_p2]() {}
[_p3]() {}
}

View File

@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) {
var p1;
var p2;
var p3;
var tmp = p1, tmp1 = p2, tmp2 = p3;
var _p1 = p1, _p2 = p2, _p3 = p3;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -29,15 +29,15 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _p1,
value: function value() {}
},
{
key: tmp1,
key: _p2,
value: function value() {}
},
{
key: tmp2,
key: _p3,
value: function value() {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var p2, p3, tmp = void 0, tmp1 = p2, tmp2 = p3, C = function() {
var p2, p3, _p1 = void 0, _p2 = p2, _p3 = p3, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,15 +14,15 @@ var p2, p3, tmp = void 0, tmp1 = p2, tmp2 = p3, C = function() {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _p1,
value: function() {}
},
{
key: tmp1,
key: _p2,
value: function() {}
},
{
key: tmp2,
key: _p3,
value: function() {}
}
], _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -2,29 +2,29 @@
var s;
var n;
var a;
var tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = "", tmp6 = 0, tmp7 = a, tmp8 = true, tmp9 = `hello bye`, tmp10 = `hello ${a} bye`;
let _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = `hello ${a} bye`;
class C {
get [tmp]() {
get [_s]() {
return 0;
}
set [_n](v) {}
static get [tmp]() {
return 0;
}
set [tmp1](v) {}
static get [tmp2]() {
get [tmp2]() {
return 0;
}
set [tmp3](v) {}
get [tmp4]() {
static set [""](v) {}
get [0]() {
return 0;
}
static set [tmp5](v) {}
get [tmp6]() {
set [_a](v) {}
static get [true]() {
return 0;
}
set [tmp7](v) {}
static get [tmp8]() {
return 0;
}
set [tmp9](v) {}
get [tmp10]() {
set [`hello bye`](v) {}
get [tmp3]() {
return 0;
}
}

View File

@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) {
var s;
var n;
var a;
var tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = "", tmp6 = 0, tmp7 = a, tmp8 = true, tmp9 = "hello bye", tmp10 = "hello ".concat(a, " bye");
var _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = "hello ".concat(a, " bye");
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -29,46 +29,19 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _s,
get: function get() {
return 0;
}
},
{
key: _n,
set: function set(v) {}
},
{
key: tmp1,
set: function set(v) {}
},
{
key: tmp3,
set: function set(v) {}
},
{
key: tmp4,
get: function get() {
return 0;
}
},
{
key: tmp6,
get: function get() {
return 0;
}
},
{
key: tmp7,
set: function set(v) {}
},
{
key: tmp9,
set: function set(v) {}
},
{
key: tmp10,
get: function get() {
return 0;
}
}
], [
{
key: tmp2,
get: function get() {
@ -76,11 +49,38 @@ var C = /*#__PURE__*/ function() {
}
},
{
key: tmp5,
key: 0,
get: function get() {
return 0;
}
},
{
key: _a,
set: function set(v) {}
},
{
key: tmp8,
key: "hello bye",
set: function set(v) {}
},
{
key: tmp3,
get: function get() {
return 0;
}
}
], [
{
key: tmp,
get: function get() {
return 0;
}
},
{
key: "",
set: function set(v) {}
},
{
key: true,
get: function get() {
return 0;
}

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a, tmp6 = "hello ".concat(a, " bye"), C = function() {
var s, n, a, _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = "hello ".concat(a, " bye"), C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,21 +14,21 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _s,
get: function() {
return 0;
}
},
{
key: _n,
set: function(v) {}
},
{
key: tmp1,
set: function(v) {}
},
{
key: tmp3,
set: function(v) {}
},
{
key: tmp4,
key: tmp2,
get: function() {
return 0;
}
@ -40,7 +40,7 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
}
},
{
key: tmp5,
key: _a,
set: function(v) {}
},
{
@ -48,14 +48,14 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
set: function(v) {}
},
{
key: tmp6,
key: tmp3,
get: function() {
return 0;
}
}
], staticProps = [
{
key: tmp2,
key: tmp,
get: function() {
return 0;
}

View File

@ -2,29 +2,29 @@
var s;
var n;
var a;
var tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = "", tmp6 = 0, tmp7 = a, tmp8 = true, tmp9 = `hello bye`, tmp10 = `hello ${a} bye`;
let _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = `hello ${a} bye`;
class C {
get [tmp]() {
get [_s]() {
return 0;
}
set [_n](v) {}
static get [tmp]() {
return 0;
}
set [tmp1](v) {}
static get [tmp2]() {
get [tmp2]() {
return 0;
}
set [tmp3](v) {}
get [tmp4]() {
static set [""](v) {}
get [0]() {
return 0;
}
static set [tmp5](v) {}
get [tmp6]() {
set [_a](v) {}
static get [true]() {
return 0;
}
set [tmp7](v) {}
static get [tmp8]() {
return 0;
}
set [tmp9](v) {}
get [tmp10]() {
set [`hello bye`](v) {}
get [tmp3]() {
return 0;
}
}

View File

@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) {
var s;
var n;
var a;
var tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = "", tmp6 = 0, tmp7 = a, tmp8 = true, tmp9 = "hello bye", tmp10 = "hello ".concat(a, " bye");
var _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = "hello ".concat(a, " bye");
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -29,46 +29,19 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _s,
get: function get() {
return 0;
}
},
{
key: _n,
set: function set(v) {}
},
{
key: tmp1,
set: function set(v) {}
},
{
key: tmp3,
set: function set(v) {}
},
{
key: tmp4,
get: function get() {
return 0;
}
},
{
key: tmp6,
get: function get() {
return 0;
}
},
{
key: tmp7,
set: function set(v) {}
},
{
key: tmp9,
set: function set(v) {}
},
{
key: tmp10,
get: function get() {
return 0;
}
}
], [
{
key: tmp2,
get: function get() {
@ -76,11 +49,38 @@ var C = /*#__PURE__*/ function() {
}
},
{
key: tmp5,
key: 0,
get: function get() {
return 0;
}
},
{
key: _a,
set: function set(v) {}
},
{
key: tmp8,
key: "hello bye",
set: function set(v) {}
},
{
key: tmp3,
get: function get() {
return 0;
}
}
], [
{
key: tmp,
get: function get() {
return 0;
}
},
{
key: "",
set: function set(v) {}
},
{
key: true,
get: function get() {
return 0;
}

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a, tmp6 = "hello ".concat(a, " bye"), C = function() {
var s, n, a, _s = s, _n = n, tmp = s + s, tmp1 = s + n, tmp2 = +s, _a = a, tmp3 = "hello ".concat(a, " bye"), C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,21 +14,21 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _s,
get: function() {
return 0;
}
},
{
key: _n,
set: function(v) {}
},
{
key: tmp1,
set: function(v) {}
},
{
key: tmp3,
set: function(v) {}
},
{
key: tmp4,
key: tmp2,
get: function() {
return 0;
}
@ -40,7 +40,7 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
}
},
{
key: tmp5,
key: _a,
set: function(v) {}
},
{
@ -48,14 +48,14 @@ var s, n, a, tmp = s, tmp1 = n, tmp2 = s + s, tmp3 = s + n, tmp4 = +s, tmp5 = a,
set: function(v) {}
},
{
key: tmp6,
key: tmp3,
get: function() {
return 0;
}
}
], staticProps = [
{
key: tmp2,
key: tmp,
get: function() {
return 0;
}

View File

@ -1,17 +1,17 @@
// @target: es5
var b;
var tmp = b, tmp1 = true, tmp2 = [], tmp3 = {}, tmp4 = undefined, tmp5 = null;
let _b = b, _undefined = undefined;
class C {
get [tmp]() {
get [_b]() {
return 0;
}
static set [tmp1](v) {}
get [tmp2]() {
static set [true](v) {}
get [[]]() {
return 0;
}
set [tmp3](v) {}
static get [tmp4]() {
set [{}](v) {}
static get [_undefined]() {
return 0;
}
set [tmp5](v) {}
set [null](v) {}
}

View File

@ -19,7 +19,7 @@ function _createClass(Constructor, protoProps, staticProps) {
}
// @target: es5
var b;
var tmp = b, tmp1 = true, tmp2 = [], tmp3 = {}, tmp4 = undefined, tmp5 = null;
var _b = b, _undefined = undefined;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -27,32 +27,32 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _b,
get: function get() {
return 0;
}
},
{
key: tmp2,
key: [],
get: function get() {
return 0;
}
},
{
key: tmp3,
key: {},
set: function set(v) {}
},
{
key: tmp5,
key: null,
set: function set(v) {}
}
], [
{
key: tmp1,
key: true,
set: function set(v) {}
},
{
key: tmp4,
key: _undefined,
get: function get() {
return 0;
}

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var tmp = void 0, tmp1 = [], tmp2 = {}, tmp3 = void 0, C = function() {
var _b = void 0, _undefined = void 0, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,19 +14,19 @@ var tmp = void 0, tmp1 = [], tmp2 = {}, tmp3 = void 0, C = function() {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _b,
get: function() {
return 0;
}
},
{
key: tmp1,
key: [],
get: function() {
return 0;
}
},
{
key: tmp2,
key: {},
set: function(v) {}
},
{
@ -39,7 +39,7 @@ var tmp = void 0, tmp1 = [], tmp2 = {}, tmp3 = void 0, C = function() {
set: function(v) {}
},
{
key: tmp3,
key: _undefined,
get: function() {
return 0;
}

View File

@ -1,17 +1,17 @@
// @target: es6
var b;
var tmp = b, tmp1 = true, tmp2 = [], tmp3 = {}, tmp4 = undefined, tmp5 = null;
let _b = b, _undefined = undefined;
class C {
get [tmp]() {
get [_b]() {
return 0;
}
static set [tmp1](v) {}
get [tmp2]() {
static set [true](v) {}
get [[]]() {
return 0;
}
set [tmp3](v) {}
static get [tmp4]() {
set [{}](v) {}
static get [_undefined]() {
return 0;
}
set [tmp5](v) {}
set [null](v) {}
}

View File

@ -19,7 +19,7 @@ function _createClass(Constructor, protoProps, staticProps) {
}
// @target: es6
var b;
var tmp = b, tmp1 = true, tmp2 = [], tmp3 = {}, tmp4 = undefined, tmp5 = null;
var _b = b, _undefined = undefined;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -27,32 +27,32 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _b,
get: function get() {
return 0;
}
},
{
key: tmp2,
key: [],
get: function get() {
return 0;
}
},
{
key: tmp3,
key: {},
set: function set(v) {}
},
{
key: tmp5,
key: null,
set: function set(v) {}
}
], [
{
key: tmp1,
key: true,
set: function set(v) {}
},
{
key: tmp4,
key: _undefined,
get: function get() {
return 0;
}

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var tmp = void 0, tmp1 = [], tmp2 = {}, tmp3 = void 0, C = function() {
var _b = void 0, _undefined = void 0, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,19 +14,19 @@ var tmp = void 0, tmp1 = [], tmp2 = {}, tmp3 = void 0, C = function() {
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _b,
get: function() {
return 0;
}
},
{
key: tmp1,
key: [],
get: function() {
return 0;
}
},
{
key: tmp2,
key: {},
set: function(v) {}
},
{
@ -39,7 +39,7 @@ var tmp = void 0, tmp1 = [], tmp2 = {}, tmp3 = void 0, C = function() {
set: function(v) {}
},
{
key: tmp3,
key: _undefined,
get: function() {
return 0;
}

View File

@ -1,4 +1,4 @@
var tmp = this.bar();
let tmp = this.bar();
// @target: es5
class C {
bar() {

View File

@ -1,4 +1,4 @@
var tmp = this.bar();
let tmp = this.bar();
// @target: es6
class C {
bar() {

View File

@ -1,4 +1,4 @@
var tmp = {
let tmp = {
[this.bar()]: 1
}[0];
// @target: es5

View File

@ -1,4 +1,4 @@
var tmp = {
let tmp = {
[this.bar()]: 1
}[0];
// @target: es6

View File

@ -4,7 +4,7 @@ class Base {
return 0;
}
}
var tmp = super.bar();
let tmp = super.bar();
class C extends Base {
[tmp]() {}
}

View File

@ -4,7 +4,7 @@ class Base {
return 0;
}
}
var tmp = super.bar();
let tmp = super.bar();
class C extends Base {
// Gets emitted as super, not _super, which is consistent with
// use of super in static properties initializers.

View File

@ -4,7 +4,7 @@ class Base {
return 0;
}
}
var tmp = {
let tmp = {
[super.bar()]: 1
}[0];
class C extends Base {

View File

@ -4,7 +4,7 @@ class Base {
return 0;
}
}
var tmp = {
let tmp = {
[super.bar()]: 1
}[0];
class C extends Base {

View File

@ -1,7 +1,7 @@
// @target: es5
class Base {
}
var tmp = (super(), "prop");
let tmp = (super(), "prop");
class C extends Base {
[tmp]() {}
}

View File

@ -1,7 +1,7 @@
// @target: es6
class Base {
}
var tmp = (super(), "prop");
let tmp = (super(), "prop");
class C extends Base {
[tmp]() {}
}

View File

@ -1,12 +1,12 @@
// @target: es5
var methodName = "method";
var accessorName = "accessor";
var tmp = methodName, tmp1 = methodName, tmp2 = accessorName, tmp3 = accessorName, tmp4 = accessorName, tmp5 = accessorName;
let _methodName = methodName, _methodName1 = methodName, _accessorName = accessorName, _accessorName1 = accessorName, _accessorName2 = accessorName, _accessorName3 = accessorName;
class C {
[tmp]() {}
static [tmp1]() {}
get [tmp2]() {}
set [tmp3](v) {}
static get [tmp4]() {}
static set [tmp5](v) {}
[_methodName]() {}
static [_methodName1]() {}
get [_accessorName]() {}
set [_accessorName1](v) {}
static get [_accessorName2]() {}
static set [_accessorName3](v) {}
}

View File

@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) {
// @target: es5
var methodName = "method";
var accessorName = "accessor";
var tmp = methodName, tmp1 = methodName, tmp2 = accessorName, tmp3 = accessorName, tmp4 = accessorName, tmp5 = accessorName;
var _methodName = methodName, _methodName1 = methodName, _accessorName = accessorName, _accessorName1 = accessorName, _accessorName2 = accessorName, _accessorName3 = accessorName;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -28,28 +28,28 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _methodName,
value: function value() {}
},
{
key: tmp2,
key: _accessorName,
get: function get() {}
},
{
key: tmp3,
key: _accessorName1,
set: function set(v) {}
}
], [
{
key: tmp1,
key: _methodName1,
value: function value() {}
},
{
key: tmp4,
key: _accessorName2,
get: function get() {}
},
{
key: tmp5,
key: _accessorName3,
set: function set(v) {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var methodName = "method", accessorName = "accessor", tmp = methodName, tmp1 = methodName, tmp2 = accessorName, tmp3 = accessorName, tmp4 = accessorName, tmp5 = accessorName, C = function() {
var methodName = "method", accessorName = "accessor", _methodName = methodName, _methodName1 = methodName, _accessorName = accessorName, _accessorName1 = accessorName, _accessorName2 = accessorName, _accessorName3 = accessorName, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,28 +14,28 @@ var methodName = "method", accessorName = "accessor", tmp = methodName, tmp1 = m
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _methodName,
value: function() {}
},
{
key: tmp2,
key: _accessorName,
get: function() {}
},
{
key: tmp3,
key: _accessorName1,
set: function(v) {}
}
], staticProps = [
{
key: tmp1,
key: _methodName1,
value: function() {}
},
{
key: tmp4,
key: _accessorName2,
get: function() {}
},
{
key: tmp5,
key: _accessorName3,
set: function(v) {}
}
], protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -1,12 +1,12 @@
// @target: es6
var methodName = "method";
var accessorName = "accessor";
var tmp = methodName, tmp1 = methodName, tmp2 = accessorName, tmp3 = accessorName, tmp4 = accessorName, tmp5 = accessorName;
let _methodName = methodName, _methodName1 = methodName, _accessorName = accessorName, _accessorName1 = accessorName, _accessorName2 = accessorName, _accessorName3 = accessorName;
class C {
[tmp]() {}
static [tmp1]() {}
get [tmp2]() {}
set [tmp3](v) {}
static get [tmp4]() {}
static set [tmp5](v) {}
[_methodName]() {}
static [_methodName1]() {}
get [_accessorName]() {}
set [_accessorName1](v) {}
static get [_accessorName2]() {}
static set [_accessorName3](v) {}
}

View File

@ -20,7 +20,7 @@ function _createClass(Constructor, protoProps, staticProps) {
// @target: es6
var methodName = "method";
var accessorName = "accessor";
var tmp = methodName, tmp1 = methodName, tmp2 = accessorName, tmp3 = accessorName, tmp4 = accessorName, tmp5 = accessorName;
var _methodName = methodName, _methodName1 = methodName, _accessorName = accessorName, _accessorName1 = accessorName, _accessorName2 = accessorName, _accessorName3 = accessorName;
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -28,28 +28,28 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: _methodName,
value: function value() {}
},
{
key: tmp2,
key: _accessorName,
get: function get() {}
},
{
key: tmp3,
key: _accessorName1,
set: function set(v) {}
}
], [
{
key: tmp1,
key: _methodName1,
value: function value() {}
},
{
key: tmp4,
key: _accessorName2,
get: function get() {}
},
{
key: tmp5,
key: _accessorName3,
set: function set(v) {}
}
]);

View File

@ -4,7 +4,7 @@ function _defineProperties(target, props) {
descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
}
}
var methodName = "method", accessorName = "accessor", tmp = methodName, tmp1 = methodName, tmp2 = accessorName, tmp3 = accessorName, tmp4 = accessorName, tmp5 = accessorName, C = function() {
var methodName = "method", accessorName = "accessor", _methodName = methodName, _methodName1 = methodName, _accessorName = accessorName, _accessorName1 = accessorName, _accessorName2 = accessorName, _accessorName3 = accessorName, C = function() {
"use strict";
var Constructor, protoProps, staticProps;
function C() {
@ -14,28 +14,28 @@ var methodName = "method", accessorName = "accessor", tmp = methodName, tmp1 = m
}
return Constructor = C, protoProps = [
{
key: tmp,
key: _methodName,
value: function() {}
},
{
key: tmp2,
key: _accessorName,
get: function() {}
},
{
key: tmp3,
key: _accessorName1,
set: function(v) {}
}
], staticProps = [
{
key: tmp1,
key: _methodName1,
value: function() {}
},
{
key: tmp4,
key: _accessorName2,
get: function() {}
},
{
key: tmp5,
key: _accessorName3,
set: function(v) {}
}
], protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), C;

View File

@ -2,7 +2,7 @@
function foo() {
return '';
}
var tmp = foo();
let tmp = foo();
class C {
bar() {
return 0;

View File

@ -2,7 +2,7 @@
function foo() {
return '';
}
var tmp = foo();
let tmp = foo();
class C {
bar() {
return 0;

View File

@ -3,11 +3,10 @@ class Foo {
}
class Foo2 {
}
var tmp = "get1", tmp1 = "set1";
class C {
// Computed properties
get [tmp]() {
get ["get1"]() {
return new Foo;
}
set [tmp1](p) {}
set ["set1"](p) {}
}

View File

@ -25,7 +25,6 @@ var Foo2 = function Foo2() {
"use strict";
_classCallCheck(this, Foo2);
};
var tmp = "get1", tmp1 = "set1";
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -33,14 +32,14 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: "get1",
get: // Computed properties
function get() {
return new Foo;
}
},
{
key: tmp1,
key: "set1",
set: function set(p) {}
}
]);

View File

@ -3,11 +3,10 @@ class Foo {
}
class Foo2 {
}
var tmp = "get1", tmp1 = "set1";
class C {
// Computed properties
get [tmp]() {
get ["get1"]() {
return new Foo;
}
set [tmp1](p) {}
set ["set1"](p) {}
}

View File

@ -25,7 +25,6 @@ var Foo2 = function Foo2() {
"use strict";
_classCallCheck(this, Foo2);
};
var tmp = "get1", tmp1 = "set1";
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -33,14 +32,14 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: "get1",
get: // Computed properties
function get() {
return new Foo;
}
},
{
key: tmp1,
key: "set1",
set: function set(p) {}
}
]);

View File

@ -3,11 +3,10 @@ class Foo {
}
class Foo2 {
}
var tmp = "get1", tmp1 = "set1";
class C {
// Computed properties
get [tmp]() {
get ["get1"]() {
return new Foo;
}
set [tmp1](p) {}
set ["set1"](p) {}
}

View File

@ -25,7 +25,6 @@ var Foo2 = function Foo2() {
"use strict";
_classCallCheck(this, Foo2);
};
var tmp = "get1", tmp1 = "set1";
var C = /*#__PURE__*/ function() {
"use strict";
function C() {
@ -33,14 +32,14 @@ var C = /*#__PURE__*/ function() {
}
_createClass(C, [
{
key: tmp,
key: "get1",
get: // Computed properties
function get() {
return new Foo;
}
},
{
key: tmp1,
key: "set1",
set: function set(p) {}
}
]);

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