зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1184597: Remove redundant condition checking; r=efaust
--HG-- extra : rebase_source : d0a93cd0c1d125c5ca8f17337d684f7a68c6c2aa
This commit is contained in:
Родитель
3a3113dc21
Коммит
2e2114243b
|
@ -4945,7 +4945,7 @@ Parser<FullParseHandler>::forStatement(YieldHandling yieldHandling)
|
|||
* rhs of 'in'.
|
||||
*/
|
||||
if (headKind == PNK_FOROF) {
|
||||
forStmt.type = (headKind == PNK_FOROF) ? STMT_FOR_OF_LOOP : STMT_FOR_IN_LOOP;
|
||||
forStmt.type = STMT_FOR_OF_LOOP;
|
||||
if (isForEach) {
|
||||
report(ParseError, false, null(), JSMSG_BAD_FOR_EACH_LOOP);
|
||||
return null();
|
||||
|
@ -5037,7 +5037,7 @@ Parser<FullParseHandler>::forStatement(YieldHandling yieldHandling)
|
|||
return null();
|
||||
}
|
||||
|
||||
headKind = PNK_FORHEAD;
|
||||
MOZ_ASSERT(headKind == PNK_FORHEAD);
|
||||
|
||||
if (blockObj) {
|
||||
// Ensure here that the previously-unchecked assignment mandate for
|
||||
|
|
Загрузка…
Ссылка в новой задаче