swc/ecmascript/transforms/optimization/tests/dce/deno-18789/case1/input.js
강동윤 ad55711e45
fix(es/transforms): Fix bugs (#1769)
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)
2021-05-30 19:52:51 +09:00

7 lines
83 B
JavaScript

@decorator
class Class { }
function decorator(cls) {
console.log(cls.name);
}