mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
b044d2c6dd
swc_ecma_transforms_base: - Add some helpers. swc_ecma_transforms_compat: - `class_properties`: Support private methods. (Closes #1694)
10 lines
195 B
JavaScript
10 lines
195 B
JavaScript
class MyClass {
|
|
#get() {
|
|
console.log("Hi from a method with a private identifier called #get");
|
|
}
|
|
constructor() {
|
|
this.#get();
|
|
}
|
|
}
|
|
|
|
const instance = new MyClass(); |