Skip to content

Commit 42a67d0

Browse files
committed
Fixing a full test failure
After my commit #5471 one of the Profiler unit test was failing. In that PR the arguments to ParseFncDeclHelper were passed wrong.
1 parent dc884d2 commit 42a67d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Parser/Parse.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3311,7 +3311,7 @@ ParseNodePtr Parser::ParseTerm(BOOL fAllowCall,
33113311
{
33123312
flags |= fFncAsync;
33133313
}
3314-
pnode = ParseFncDeclNoCheckScope<buildAST>(flags, SuperRestrictionState::Disallowed, pNameHint, false, true, fUnaryOrParen);
3314+
pnode = ParseFncDeclNoCheckScope<buildAST>(flags, SuperRestrictionState::Disallowed, pNameHint, /* needsPIDOnRCurlyScan */ false, fUnaryOrParen);
33153315
if (isAsyncExpr)
33163316
{
33173317
pnode->AsParseNodeFnc()->cbMin = iecpMin;
@@ -6672,7 +6672,7 @@ void Parser::ParseFncFormals(ParseNodeFnc * pnodeFnc, ParseNodeFnc * pnodeParent
66726672
template<bool buildAST>
66736673
ParseNodePtr Parser::GenerateModuleFunctionWrapper()
66746674
{
6675-
ParseNodePtr pnodeFnc = ParseFncDeclNoCheckScope<buildAST>(fFncModule, SuperRestrictionState::Disallowed, nullptr, false, true, true);
6675+
ParseNodePtr pnodeFnc = ParseFncDeclNoCheckScope<buildAST>(fFncModule, SuperRestrictionState::Disallowed, nullptr, /* needsPIDOnRCurlyScan */ false, /* fUnaryOrParen */ true);
66766676
ParseNodePtr callNode = CreateCallNode(knopCall, pnodeFnc, nullptr);
66776677

66786678
return callNode;

0 commit comments

Comments
 (0)