Bug 1344753 - Update for-of stack depth in ControlFlowGenerator::processWhileOrForInLoop.

Tag #1287
This commit is contained in:
Gaming4JC 2019-12-03 20:00:57 -05:00 committed by Roy Tam
commit 086d14cb8b

View file

@ -3349,7 +3349,7 @@ IonBuilder::whileOrForInLoop(jssrcnote* sn)
unsigned stackPhiCount;
if (SN_TYPE(sn) == SRC_FOR_OF)
stackPhiCount = 2;
stackPhiCount = 3;
else if (SN_TYPE(sn) == SRC_FOR_IN)
stackPhiCount = 1;
else