From 242c59ea40c0428e1ced7366bf2c28bfbdda1999 Mon Sep 17 00:00:00 2001 From: Taylor Woll Date: Tue, 2 Jul 2019 13:12:05 -0700 Subject: [PATCH] [CVE-2019-1131] Chakra Type confusion --- lib/Parser/Parse.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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.