Bug 875748. (r=djvj)

This commit is contained in:
Shu-yu Guo 2013-05-24 16:55:54 -07:00
parent b4bb75b22e
commit 6c5ae9572f

View File

@ -6980,7 +6980,7 @@ IonBuilder::jsop_rest()
// checking here.
MConstant *index;
for (unsigned i = numFormals; i < numActuals; i++) {
index = MConstant::New(Int32Value(i));
index = MConstant::New(Int32Value(i - numFormals));
current->add(index);
MStoreElement *store = MStoreElement::New(elements, index, inlinedArguments_[i],
/* needsHoleCheck = */ false);