* Build(deps): Bump flow-parser from 0.157.0 to 0.158.0 Bumps [flow-parser](https://github.com/facebook/flow) from 0.157.0 to 0.158.0. - [Release notes](https://github.com/facebook/flow/releases) - [Changelog](https://github.com/facebook/flow/blob/main/Changelog.md) - [Commits](https://github.com/facebook/flow/compare/v0.157.0...v0.158.0) --- updated-dependencies: - dependency-name: flow-parser dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Add tests for class fields feature (#11394) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
16 lines
303 B
JavaScript
16 lines
303 B
JavaScript
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();
|
|
}
|
|
}
|