Skip to content

Commit

Permalink
[CVE-2018-0939] Edge - chakra arguments bug version 2.0 - Individual
Browse files Browse the repository at this point in the history
Object destructuring should track assignment in case of default value
  • Loading branch information
agarwal-sandeep authored and akroshg committed Mar 12, 2018
1 parent 64e7619 commit 090277e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Parser/Parse.cpp
Expand Up @@ -12904,6 +12904,10 @@ ParseNodePtr Parser::GetRightSideNodeFromPattern(ParseNodePtr pnode)
{
TrackAssignment<true>(pnode, nullptr);
}
else if (op == knopAsg)
{
TrackAssignment<true>(pnode->sxBin.pnode1, nullptr);
}
}

return rightNode;
Expand Down

0 comments on commit 090277e

Please sign in to comment.