mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
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:
parent
3581c41939
commit
fb38893d0e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user