Comment #1 on issue 712 by [email protected]: Object.defineProperty allows overriding an accessor with an empty descriptor
http://code.google.com/p/v8/issues/detail?id=712
This behavior looks correct to me. When using defineProperty() on an existing property, any attributes omitted from the descriptor default to the existing attributes of that property. In this case, the descriptor is empty so all the attributes should default to their existing values. Thus, this call is merely setting the property's state to its current state, which defineProperty() allows even on a non-configurable property.
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
