DescriptionGracefully handle syntax errors in Parser::PatternRewriter.
PatternRewriter handles certain error cases with UNREACHABLE().
Apparently, RewriteDestructuringAssignment assumes syntax checking has
been done, so it's ok in this case. But DeclareAndInitializeVariables
is meant to report errors to the user, so that's rather inappropriate.
We leave the 1st case as a CHECK, but the 2nd will now report a syntax
error.
R=jochen@chromium.org, rossberg@chromium.org
BUG=chromium:582626
LOG=Y
Patch Set 1 #Patch Set 2 : Unit test. #
Messages
Total messages: 8 (2 generated)
|