No Bug - Fix insane "error handling" in EmitFinishIteratorResult. (rs=jorendorff)

This commit is contained in:
Eric Faust 2014-12-05 13:56:47 -08:00
parent 565feca341
commit 524fc6fe76

View File

@ -2307,10 +2307,10 @@ EmitFinishIteratorResult(ExclusiveContext *cx, BytecodeEmitter *bce, bool done)
{
jsatomid value_id;
if (!bce->makeAtomIndex(cx->names().value, &value_id))
return UINT_MAX;
return false;
jsatomid done_id;
if (!bce->makeAtomIndex(cx->names().done, &done_id))
return UINT_MAX;
return false;
if (!EmitIndex32(cx, JSOP_INITPROP, value_id, bce))
return false;