• 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
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
test262-es6 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...