-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
273 changed files
with
1,179 additions
and
722 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
...s/babel-helper-create-class-features-plugin/test/fixtures/replace-supers/method/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
var _class; | ||
var _foo = /*#__PURE__*/new WeakSet(); | ||
class A extends B { | ||
constructor(...args) { | ||
super(...args); | ||
babelHelpers.classPrivateMethodInitSpec(this, _foo); | ||
} | ||
} | ||
_class = A; | ||
function _foo2() { | ||
let _A; | ||
babelHelpers.get(babelHelpers.getPrototypeOf(A.prototype), "x", this); | ||
babelHelpers.get(babelHelpers.getPrototypeOf(_class.prototype), "x", this); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
...ecorators/test/fixtures/2021-12-accessors--to-es2015/undecorated-static-private/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 23 additions & 11 deletions
34
...l-decorators/test/fixtures/2021-12-classes--to-es2015/expressions-static-blocks/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,79 @@ | ||
var _initClass, _A, _temp, _initClass2, _C, _temp2, _initClass3, _D, _temp3, _initClass4, _decorated_class, _temp4, _class2, _initClass5, _G, _temp5, _initClass6, _decorated_class2, _temp6, _class3, _initClass7, _H, _temp7, _initClass8, _K, _temp8; | ||
var _initClass, _A, _temp, _initClass2, _C, _temp2, _initClass3, _D, _temp3, _initClass4, _decorated_class, _temp4, _class5, _initClass5, _G, _temp5, _initClass6, _decorated_class2, _temp6, _class7, _initClass7, _H, _temp7, _initClass8, _K, _temp8; | ||
const dec = () => {}; | ||
const A = (new (_temp = class extends babelHelpers.identity { | ||
constructor() { | ||
super(_A), (() => {})(), _initClass(); | ||
} | ||
}, (() => { | ||
var _class2; | ||
class A {} | ||
[_A, _initClass] = babelHelpers.applyDecs(A, [], [dec]); | ||
_class2 = A; | ||
[_A, _initClass] = babelHelpers.applyDecs(_class2, [], [dec]); | ||
})(), _temp)(), _A); | ||
const B = (new (_temp2 = class extends babelHelpers.identity { | ||
constructor() { | ||
super(_C), (() => {})(), _initClass2(); | ||
} | ||
}, (() => { | ||
var _class3; | ||
class C {} | ||
[_C, _initClass2] = babelHelpers.applyDecs(C, [], [dec]); | ||
_class3 = C; | ||
[_C, _initClass2] = babelHelpers.applyDecs(_class3, [], [dec]); | ||
})(), _temp2)(), _C); | ||
const D = (new (_temp3 = class extends babelHelpers.identity { | ||
constructor() { | ||
super(_D), (() => {})(), _initClass3(); | ||
} | ||
}, (() => { | ||
var _class4; | ||
class D {} | ||
[_D, _initClass3] = babelHelpers.applyDecs(D, [], [dec]); | ||
_class4 = D; | ||
[_D, _initClass3] = babelHelpers.applyDecs(_class4, [], [dec]); | ||
})(), _temp3)(), _D); | ||
const E = ((new (_temp4 = class extends babelHelpers.identity { | ||
constructor() { | ||
super(_decorated_class), (() => {})(), _initClass4(); | ||
} | ||
}, (_class2 = class {}, [_decorated_class, _initClass4] = babelHelpers.applyDecs(_class2, [], [dec])), _temp4)(), _decorated_class), 123); | ||
}, (_class5 = class {}, [_decorated_class, _initClass4] = babelHelpers.applyDecs(_class5, [], [dec])), _temp4)(), _decorated_class), 123); | ||
const F = [(new (_temp5 = class extends babelHelpers.identity { | ||
constructor() { | ||
super(_G), (() => {})(), _initClass5(); | ||
} | ||
}, (() => { | ||
var _class6; | ||
class G {} | ||
[_G, _initClass5] = babelHelpers.applyDecs(G, [], [dec]); | ||
_class6 = G; | ||
[_G, _initClass5] = babelHelpers.applyDecs(_class6, [], [dec]); | ||
})(), _temp5)(), _G), (new (_temp6 = class extends babelHelpers.identity { | ||
constructor() { | ||
super(_decorated_class2), (() => {})(), _initClass6(); | ||
} | ||
}, (_class3 = class {}, [_decorated_class2, _initClass6] = babelHelpers.applyDecs(_class3, [], [dec])), _temp6)(), _decorated_class2)]; | ||
}, (_class7 = class {}, [_decorated_class2, _initClass6] = babelHelpers.applyDecs(_class7, [], [dec])), _temp6)(), _decorated_class2)]; | ||
const H = (new (_temp7 = class extends babelHelpers.identity { | ||
constructor() { | ||
super(_H), (() => {})(), _initClass7(); | ||
} | ||
}, (() => { | ||
var _class8; | ||
class H extends I {} | ||
[_H, _initClass7] = babelHelpers.applyDecs(H, [], [dec]); | ||
_class8 = H; | ||
[_H, _initClass7] = babelHelpers.applyDecs(_class8, [], [dec]); | ||
})(), _temp7)(), _H); | ||
const J = (new (_temp8 = class extends babelHelpers.identity { | ||
constructor() { | ||
super(_K), (() => {})(), _initClass8(); | ||
} | ||
}, (() => { | ||
var _class9; | ||
class K extends L {} | ||
[_K, _initClass8] = babelHelpers.applyDecs(K, [], [dec]); | ||
_class9 = K; | ||
[_K, _initClass8] = babelHelpers.applyDecs(_class9, [], [dec]); | ||
})(), _temp8)(), _K); | ||
function classFactory() { | ||
var _initClass9, _decorated_class3, _temp9, _class5; | ||
var _initClass9, _decorated_class3, _temp9, _class11; | ||
return new (_temp9 = class extends babelHelpers.identity { | ||
constructor() { | ||
super(_decorated_class3), (() => {})(), _initClass9(); | ||
} | ||
}, (_class5 = class {}, [_decorated_class3, _initClass9] = babelHelpers.applyDecs(_class5, [], [dec])), _temp9)(), _decorated_class3; | ||
}, (_class11 = class {}, [_decorated_class3, _initClass9] = babelHelpers.applyDecs(_class11, [], [dec])), _temp9)(), _decorated_class3; | ||
} |
8 changes: 5 additions & 3 deletions
8
...plugin-proposal-decorators/test/fixtures/2021-12-classes--to-es2015/inheritance/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
var _initClass, _initClass2; | ||
var _initClass, _class, _initClass2, _class2; | ||
const dec1 = () => {}; | ||
const dec2 = () => {}; | ||
let _Bar; | ||
class Bar {} | ||
[_Bar, _initClass] = babelHelpers.applyDecs(Bar, [], [dec1]); | ||
_class = Bar; | ||
[_Bar, _initClass] = babelHelpers.applyDecs(_class, [], [dec1]); | ||
_initClass(); | ||
let _Foo; | ||
class Foo extends _Bar {} | ||
[_Foo, _initClass2] = babelHelpers.applyDecs(Foo, [], [dec2]); | ||
_class2 = Foo; | ||
[_Foo, _initClass2] = babelHelpers.applyDecs(_class2, [], [dec2]); | ||
_initClass2(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.