* Add accessor loose support * Add private accessors spec support * Fix private dupe name check * Changes from code review * Add duplicated names tests * Add get/set-only tests * Move accessors tests * Split out updates tests * Add helper change tests * Update test output * Update test options
12 lines
182 B
JavaScript
12 lines
182 B
JavaScript
class Cl {
|
|
#privateField = 0;
|
|
|
|
set #privateFieldValue(newValue) {
|
|
this.#privateField = newValue;
|
|
}
|
|
|
|
constructor() {
|
|
this.publicField = this.#privateFieldValue;
|
|
}
|
|
}
|