Files
test-repo/tests/format/js/classes/class-fields-features.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
303 B
JavaScript
Raw Normal View History

class Foo {
static epoch = new CustomDate(0);
#xValue = 0;
get #x() { return this.#xValue; }
set #x(value) {
this.#xValue = value;
window.requestAnimationFrame(this.#render.bind(this));
}
#clicked() {
this.#x++;
}
#render() {
this.textContent = this.#x.toString();
}
}