diff --git a/lib/Parser/Parse.cpp b/lib/Parser/Parse.cpp index b49d0feec31..518457b8e6d 100644 --- a/lib/Parser/Parse.cpp +++ b/lib/Parser/Parse.cpp @@ -4664,10 +4664,7 @@ ParseNodePtr Parser::ParseMemberList(LPCOLESTR pNameHint, uint32* pNameHintLengt } } - if (buildAST) - { - CheckArgumentsUse(pidHint, GetCurrentFunctionNode()); - } + CheckArgumentsUse(pidHint, GetCurrentFunctionNode()); bool couldBeObjectPattern = !isObjectPattern && m_token.tk == tkAsg; // Saving the current state as we may change the isObjectPattern down below.