Analog to Object.getPropertyDescriptor() for *changing* a property value?

Axel Rauschmayer axel at
Tue Jun 21 08:24:29 PDT 2011

As a loose analog to the prototype-chain-traversing getPropertyDescriptor(), I would still like to have something that allows one to easily *change* properties higher up the prototype chain (e.g. to use a prototype to share state).

Maybe it would be enough to just have Object.getDefiningObject(obj, propName):

But I can also imagine syntactic sugar: := "abc"
desugars to
        Object.getDefiningObject(obj, "foo").foo = "abc"

Dr. Axel Rauschmayer

axel at


More information about the es-discuss mailing list