* Remove error for static private accessors * Private static accessors strict * Add loose mode support * Move `value` decl for early return * Reuse getter/setter template * Reuse getter/setter templates * Use `buildUndefinedNode` in accessor templates * Extract `isAccessor` variable
11 lines
229 B
JavaScript
11 lines
229 B
JavaScript
class Cl {
|
|
static #PRIVATE_STATIC_FIELD = 0;
|
|
|
|
static set #privateStaticFieldValue(newValue) {
|
|
Cl.#PRIVATE_STATIC_FIELD = newValue;
|
|
}
|
|
|
|
static getPrivateStaticFieldValue() {
|
|
return Cl.#privateStaticFieldValue;
|
|
}
|
|
} |