* 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
11 lines
130 B
JavaScript
11 lines
130 B
JavaScript
class Cl {
|
|
#privateField = 0;
|
|
|
|
#foo() {
|
|
return 'foo';
|
|
}
|
|
|
|
set #foo(newValue) {
|
|
this.#privateField = newValue;
|
|
}
|
|
} |