DescriptionRemove unused 'needs_init' member of ParsingResult
Also various related cleanup in ParseVariableDeclarations(). The only
changes in logic are explained below:
- We were redundantly checking for parenthesized binding patterns;
these are already ruled out by BindingPatternUnexpectedToken()
calls in the places where we hit an LPAREN.
- There's no need to default-initialize a LET-mode variable in a
for-each loop, just as there isn't for CONST or CONST_LEGACY
(ParseForStatement will take care of properly initializing all
of the above).
Committed: https://crrev.com/3d56b0d7c03690627a74125869636e621b7ae8dd
Cr-Commit-Position: refs/heads/master@{#33749}
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 9 (3 generated)
|