mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
a309b36236
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)
17 lines
255 B
TypeScript
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();
|
|
}
|
|
} |