InitProp: Fix dynamic slot index. (Bug 743096, r=sstangl)

This commit is contained in:
Nicolas Pierron 2012-04-09 18:40:37 -07:00
parent 21ddb82135
commit 6827b8da3a

View File

@ -2867,7 +2867,7 @@ IonBuilder::jsop_initprop(JSAtom *atom)
MSlots *slots = MSlots::New(obj);
current->add(slots);
MStoreSlot *store = MStoreSlot::New(slots, shape->slot(), value);
MStoreSlot *store = MStoreSlot::New(slots, baseObj->dynamicSlotIndex(shape->slot()), value);
current->add(store);
return resumeAfter(store);
}