Subj : Re: Property Getter & Setter Question To : lyg From : Brendan Eich Date : Fri Nov 19 2004 07:11 pm lyg wrote: > if I defined the getter and setter for a property.When I get the property > with objName.propertyName, It will call the getter and return the property > value, but Why to set the value to the obj->slots[slot]? > In other word, since I have defined a getter, It seems that it is not > neccessary to store the property value into obj->slots[slot]. > Is there someone explain the reason for me? Backward compatibility. Use the JSPROP_SHARED attribute if you don't want a slot to store the last-got-or-set value. /be .