Skip to content

Commit 090277e

Browse files
agarwal-sandeepakroshg
authored andcommitted
[CVE-2018-0939] Edge - chakra arguments bug version 2.0 - Individual
Object destructuring should track assignment in case of default value
1 parent 64e7619 commit 090277e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Parser/Parse.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12904,6 +12904,10 @@ ParseNodePtr Parser::GetRightSideNodeFromPattern(ParseNodePtr pnode)
1290412904
{
1290512905
TrackAssignment<true>(pnode, nullptr);
1290612906
}
12907+
else if (op == knopAsg)
12908+
{
12909+
TrackAssignment<true>(pnode->sxBin.pnode1, nullptr);
12910+
}
1290712911
}
1290812912

1290912913
return rightNode;

0 commit comments

Comments
 (0)