mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
16 lines
209 B
JavaScript
16 lines
209 B
JavaScript
let results = [];
|
|
class Foo {
|
|
constructor() {
|
|
this.self.#privateFieldValue = results.push(2);
|
|
}
|
|
|
|
get self() {
|
|
results.push(1);
|
|
return this;
|
|
}
|
|
|
|
#privateFieldValue() {
|
|
return 42;
|
|
}
|
|
}
|