-
-
Notifications
You must be signed in to change notification settings - Fork 893
Open
Labels
A-transformerArea - Transformer / TranspilerArea - Transformer / TranspilerP-highPriority - HighPriority - High
Description
function Dec(): PropertyDecorator { return () => {}; }
class Example {
@Dec()
get myProp() { return 'hello'; }
}For this input, Oxc outputs
function Dec() {
return () => {};
}
class Example {
get myProp() {
return "hello";
}
}
_decorate([
Dec(),
_decorateMetadata("design:type", void 0),
_decorateMetadata("design:paramtypes", [])
], Example.prototype, "myProp", null);(playground)
but it should be
function Dec() {
return () => {};
}
class Example {
get myProp() {
return "hello";
}
}
_decorate([
Dec(),
_decorateMetadata("design:type", Object), // <-- this line is the diff
_decorateMetadata("design:paramtypes", [])
], Example.prototype, "myProp", null);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-transformerArea - Transformer / TranspilerArea - Transformer / TranspilerP-highPriority - HighPriority - High