DescriptionChange Object.defineProperty to accept undefined as getters and setters and to correctly accept overriding an accessor with a data property.
In the past we only accepted functions as argument for setting an
accessor. Since one should be able to set an accessor to undefined
this had to be changed to take either.
In addition, we did not lookup properties in the prototype chain,
causing us to call the setter of an existing accessor up the prototype
chain when trying to replace an existing accessor (that was not local)
with a data property.
Committed: http://code.google.com/p/v8/source/detail?r=6045
Patch Set 1 #Patch Set 2 : '' #
Total comments: 7
Patch Set 3 : '' #
Messages
Total messages: 3 (0 generated)
|