mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
b7ae896bbd
swc_ecma_transforms_compat: - Handle all accesses to private class properties. (#1333) - block_scoping: Inject variable correctly. (#1231) - Handle async arrow function correctly. (#1341)
11 lines
145 B
JavaScript
11 lines
145 B
JavaScript
class Animal {
|
|
#name;
|
|
|
|
constructor(name) {
|
|
this.#name = name
|
|
}
|
|
|
|
noise() {
|
|
return this.#name.toUpperCase()
|
|
}
|
|
} |