Bug 430717: fix lookup of incorrect ID when delegating to prototype for hole in dense array. r=mrbkap, a=mconnor.

This commit is contained in:
shaver@mozilla.org 2008-04-24 13:30:07 -07:00
parent b3a186f681
commit d1076e6e69

View File

@ -4532,6 +4532,9 @@ interrupt:
rval = obj->dslots[i];
if (rval != JSVAL_HOLE)
goto end_getelem;
/* Reload rval from the stack in the rare hole case. */
rval = FETCH_OPND(-1);
}
}
id = INT_JSVAL_TO_JSID(rval);