• wingo's avatar
    Fix parsing of arrow function formal parameters · bb43d6c0
    wingo authored
    Not all parenthesized AssignmentExpressions whose components are valid
    binding patterns are valid arrow function formal parameters.  In
    particular (a,b,c)() is not valid, and in general the existing code
    wasn't catching the tail productions of ConditionalExpression,
    BinaryExpression, PostfixExpression, LeftHandSideExpression,
    and MemberExpression.
    
    Thanks to Adrian Perez for the test case.
    
    BUG=v8:4211
    LOG=Y
    R=rossberg@chromium.org
    
    Review URL: https://codereview.chromium.org/1306583002
    
    Cr-Commit-Position: refs/heads/master@{#30286}
    bb43d6c0
test-parsing.cc 217 KB