Bug 1299519.

This commit is contained in:
Pale Moon
2016-11-16 17:57:05 +01:00
committed by roytam1
parent b4302296bc
commit c97017cd57
2 changed files with 18 additions and 2 deletions
+4 -2
View File
@@ -7096,8 +7096,10 @@ Parser<ParseHandler>::generatorComprehensionLambda(GeneratorKind comprehensionKi
* kid and could be removed from pc->sc.
*/
genFunbox->anyCxFlags = outerpc->sc->anyCxFlags;
if (outerpc->sc->isFunctionBox())
genFunbox->funCxFlags = outerpc->sc->asFunctionBox()->funCxFlags;
if (outerpc->sc->isFunctionBox()) {
genFunbox->funCxFlags =
outerpc->sc->asFunctionBox()->flagsForNestedGeneratorComprehensionLambda();
}
MOZ_ASSERT(genFunbox->generatorKind() == comprehensionKind);
genFunbox->inGenexpLambda = true;