swc/tests/fixture/issue-2086/input/index.ts
강동윤 a309b36236
fix(es/transforms): Fix bugs (#2089)
swc_ecma_minifier:
 - Expose hygiene optimizer.
 - `mangle_names`: Handle private names in member expressions. (#2086)

swc_visit:
 - Make `Optional::new` const function.

swc:
 - Make `es3` optional via cargo feature.
 - Ensure that #1554 is already fixed. (#1554)
2021-08-16 10:33:18 +00:00

17 lines
255 B
TypeScript

export default class Test {
#element: HTMLElement;
constructor(element: HTMLElement) {
this.#element = element;
}
#run() {
setTimeout(() => {
this.#element.textContent = 'TESTED';
}, 1000);
}
run() {
this.#run();
}
}