Er, really fix DEBUG_jwalden code. r=tpyo

--HG--
extra : rebase_source : 957de112c57250d4244883eada9561cc76b49006
This commit is contained in:
Jeff Walden 2010-07-16 14:10:47 -05:00
parent 12cea819c6
commit 54561f53dd

View File

@ -1392,7 +1392,7 @@ InitArrayElements(JSContext *cx, JSObject *obj, jsuint start, jsuint count, Valu
/* Verify that overwriteType and writeType were accurate. */
AutoIdRooter idr(cx);
for (jsuint i = 0; i < count; i++) {
JS_ASSERT_IF(vectorType == SourceVectorAllValues, vector[i].isMagic(JS_ARRAY_HOLE));
JS_ASSERT_IF(vectorType == SourceVectorAllValues, !vector[i].isMagic(JS_ARRAY_HOLE));
jsdouble index = jsdouble(start) + i;
if (targetType == TargetElementsAllHoles && index < jsuint(-1)) {