[Webkit-unassigned] [Bug 177592] New: [ESNext] Private methods in class: syntax
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 27 23:33:09 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=177592
Bug ID: 177592
Summary: [ESNext] Private methods in class: syntax
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gskachkov at gmail.com
Following code should be parsed correctly
```
class Counter extends HTMLElement {
#xValue = 0;
get #x() { return #xValue; }
set #x(value) {
this.#xValue = value;
window.requestAnimationFrame(this.#render.bind(this));
}
#clicked() {
this.#x++;
}
constructor() {
super();
this.onclick = this.#clicked.bind(this);
}
connectedCallback() { this.#render(); }
#render() {
this.textContent = this.#x.toString();
}
}
window.customElements.define('num-counter', Counter);
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170928/7ff504bf/attachment.html>
More information about the webkit-unassigned
mailing list