Move the Parser::checkFunctionDefinition call into its callers.

This commit is contained in:
wolfbeast 2019-04-06 06:22:55 +02:00 committed by Roy Tam
commit da1cb60dc3
6 changed files with 116 additions and 95 deletions

View file

@ -7064,7 +7064,7 @@ ParseFunction(ModuleValidator& m, ParseNode** fnOut, unsigned* line)
if (!name)
return false;
ParseNode* fn = m.parser().handler.newFunctionDefinition();
ParseNode* fn = m.parser().handler.newFunctionStatement();
if (!fn)
return false;