Fix bug 643839. r=brendan, a=clegnitto

This commit is contained in:
Brian Hackett 2011-04-22 12:32:44 -07:00
parent 2abd683814
commit 260c051d6d

View File

@ -966,10 +966,8 @@ JSObject::putProperty(JSContext *cx, jsid id,
if (hadSlot && !shape->hasSlot()) {
if (oldSlot < shape->slotSpan)
freeSlot(cx, oldSlot);
#ifdef DEBUG
else
getSlotRef(oldSlot).setUndefined();
#endif
JS_ATOMIC_INCREMENT(&cx->runtime->propertyRemovals);
}