Bug 1562298 - Check OOM after PerHandlerParser::finishLexicalScope. r=jorendorff

Differential Revision: https://phabricator.services.mozilla.com/D36695

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tooru Fujisawa 2019-07-26 21:17:54 +00:00
parent 3581c41939
commit fb38893d0e

View File

@ -6999,6 +6999,9 @@ bool GeneralParser<ParseHandler, Unit>::finishClassConstructor(
}
LexicalScopeNodeType scope =
finishLexicalScope(dotInitializersScope, method);
if (!scope) {
return false;
}
if (!handler_.addClassMemberDefinition(classMembers, scope)) {
return false;
}