Bug 777181 - Breaking out of a for-let-in loop needs SRC_HIDDEN. r=luke

--HG--
extra : rebase_source : b71d4e1983d9e83f9392ff62fbff280cb3fb3295
This commit is contained in:
Benjamin Peterson 2012-07-24 19:15:37 -07:00
Родитель 812003ca27
Коммит 656e24cfa0
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -599,6 +599,8 @@ EmitNonLocalJumpFixup(JSContext *cx, BytecodeEmitter *bce, StmtInfoBCE *toStmt)
stmt = stmt->down;
if (stmt == toStmt)
break;
if (NewSrcNote(cx, bce, SRC_HIDDEN) < 0)
return false;
if (Emit1(cx, bce, JSOP_LEAVEFORLETIN) < 0)
return false;
if (!PopIterator(cx, bce))