Bug 1218204 - Remove else after return from Parser<ParseHandler>::maybeParseDirective. r=arai

This commit is contained in:
simplyblue 2015-10-27 19:07:58 +05:30
Родитель 710233de9f
Коммит 4a7be920fb
1 изменённых файлов: 8 добавлений и 9 удалений

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

@ -3145,16 +3145,15 @@ Parser<ParseHandler>::maybeParseDirective(Node list, Node pn, bool* cont)
// Request that this function be reparsed as strict.
pc->newDirectives->setStrict();
return false;
} else {
// We don't reparse global scopes, so we keep track of the
// one possible strict violation that could occur in the
// directive prologue -- octal escapes -- and complain now.
if (tokenStream.sawOctalEscape()) {
report(ParseError, false, null(), JSMSG_DEPRECATED_OCTAL);
return false;
}
pc->sc->strictScript = true;
}
// We don't reparse global scopes, so we keep track of the one
// possible strict violation that could occur in the directive
// prologue -- octal escapes -- and complain now.
if (tokenStream.sawOctalEscape()) {
report(ParseError, false, null(), JSMSG_DEPRECATED_OCTAL);
return false;
}
pc->sc->strictScript = true;
}
} else if (directive == context->names().useAsm) {
if (pc->sc->isFunctionBox())