[Webkit-unassigned] [Bug 147064] ES6 Classes: Cannot override getter / setter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 17 20:15:21 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147064

Joseph Pecoraro <joepeck at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joepeck at webkit.org

--- Comment #2 from Joseph Pecoraro <joepeck at webkit.org> ---
After discussing with Ryosuke Niwa it sounds like we are invoking the `super.name` getter, but with the wrong "this" object.

Sounds like we were replacing `super` with `this.__proto__` which would be `Base.prototype`. So we are actually getting `Base.prototype._name` instead of `this._name`. You can verify this by setting `Base.prototype._name` to a value, and then instance.name returns that value.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150718/55d73363/attachment-0001.html>


More information about the webkit-unassigned mailing list