mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
ad55711e45
swc_ecma_transforms_optimization: - `dce`: Mark references from decorator as usage. (denoland/deno#10789) swc_ecma_transforms_proposal: - Allow using `super` in decorated class methods. (#846)
7 lines
83 B
JavaScript
7 lines
83 B
JavaScript
@decorator
|
|
class Class { }
|
|
|
|
function decorator(cls) {
|
|
console.log(cls.name);
|
|
}
|