getter and setter inheritance
Mark S. Miller
erights at google.com
Mon May 12 11:21:41 PDT 2008
On Mon, May 12, 2008 at 10:10 AM, Erik Arvidsson
<erik.arvidsson at gmail.com> wrote:
> Would ES3.1 work by simply replacing __lookup(G|S)etter__ by Object.getProperty?
Yes, I think so.
> B.prototype.__defineGetter__('x', function() {
> var aGetter = A.prototype.__lookupGetter__('x);
> ...
Object.defineProperties(B.prototype, {x: {
getter: function() {
var aGetter = Object.getProperty(A.prototype, 'x').getter;
...
--
Cheers,
--MarkM
More information about the Es4-discuss
mailing list