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
1 parent
ba92ba3
commit 04d0c3a
Showing
18 changed files
with
37 additions
and
46 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...tors/ignore-abstract-methods/options.json → ...8-12-ignore-abstract-methods/options.json
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...posal-decorators/test/fixtures/2018-09-transformation/async-generator-method/options.json
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,6 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-decorators", { "decoratorsBeforeExport": false }], | ||
["proposal-decorators", { "decoratorsBeforeExport": true }], | ||
"proposal-class-properties" | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
...decorators/test/fixtures/2018-09-transformation/class-decorators-yield-await/options.json
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,6 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-decorators", { "decoratorsBeforeExport": false }], | ||
["proposal-decorators", { "decoratorsBeforeExport": true }], | ||
"proposal-class-properties" | ||
] | ||
} |
4 changes: 3 additions & 1 deletion
4
...ugin-proposal-pipeline-operator/test/fixtures/hack-double-at/class-decorator/options.json
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,6 +1,8 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-pipeline-operator", { "proposal": "hack", "topicToken": "@@" }], | ||
["proposal-decorators", { "decoratorsBeforeExport": false }] | ||
["proposal-decorators", { "version": "2021-12" }], | ||
"proposal-class-static-block", | ||
"proposal-class-properties" | ||
] | ||
} |
25 changes: 9 additions & 16 deletions
25
...-plugin-proposal-pipeline-operator/test/fixtures/hack-double-at/class-decorator/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,27 +1,20 @@ | ||
var _ref; | ||
var _initClass, _decorated_class, _class, _temp, _ref; | ||
|
||
const expectedValue = 42; | ||
|
||
function decorator(target) { | ||
target.decoratorValue = expectedValue; | ||
} | ||
|
||
const result = (_ref = expectedValue, babelHelpers.decorate([decorator], function (_initialize) { | ||
"use strict"; | ||
|
||
class _class { | ||
constructor() { | ||
_initialize(this); | ||
|
||
this.value = _ref; | ||
} | ||
|
||
const result = (_ref = expectedValue, ((_temp = _class = class { | ||
constructor() { | ||
this.value = _ref; | ||
} | ||
|
||
return { | ||
F: _class, | ||
d: [] | ||
}; | ||
})); | ||
}, (() => { | ||
[_decorated_class, _initClass] = babelHelpers.applyDecs(_class, [], [decorator]); | ||
})(), (() => { | ||
_initClass(); | ||
})(), _temp), _decorated_class)); | ||
expect(result.decoratorValue).toBe(expectedValue); | ||
expect(new result().value).toBe(expectedValue); |
4 changes: 3 additions & 1 deletion
4
...n-proposal-pipeline-operator/test/fixtures/hack-double-caret/class-decorator/options.json
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,6 +1,8 @@ | ||
{ | ||
"plugins": [ | ||
["proposal-pipeline-operator", { "proposal": "hack", "topicToken": "^^" }], | ||
["proposal-decorators", { "decoratorsBeforeExport": false }] | ||
["proposal-decorators", { "version": "2021-12" }], | ||
"proposal-class-static-block", | ||
"proposal-class-properties" | ||
] | ||
} |
25 changes: 9 additions & 16 deletions
25
...ugin-proposal-pipeline-operator/test/fixtures/hack-double-caret/class-decorator/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,27 +1,20 @@ | ||
var _ref; | ||
var _initClass, _decorated_class, _class, _temp, _ref; | ||
|
||
const expectedValue = 42; | ||
|
||
function decorator(target) { | ||
target.decoratorValue = expectedValue; | ||
} | ||
|
||
const result = (_ref = expectedValue, babelHelpers.decorate([decorator], function (_initialize) { | ||
"use strict"; | ||
|
||
class _class { | ||
constructor() { | ||
_initialize(this); | ||
|
||
this.value = _ref; | ||
} | ||
|
||
const result = (_ref = expectedValue, ((_temp = _class = class { | ||
constructor() { | ||
this.value = _ref; | ||
} | ||
|
||
return { | ||
F: _class, | ||
d: [] | ||
}; | ||
})); | ||
}, (() => { | ||
[_decorated_class, _initClass] = babelHelpers.applyDecs(_class, [], [decorator]); | ||
})(), (() => { | ||
_initClass(); | ||
})(), _temp), _decorated_class)); | ||
expect(result.decoratorValue).toBe(expectedValue); | ||
expect(new result().value).toBe(expectedValue); |
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