Commit 1d87634c authored by Toon Verwaest's avatar Toon Verwaest Committed by Commit Bot

[parser] Drop accumulating non-simple flag

If the outer classifier will end up parsing an arrow parameter list we'd only
be in an inner classifier if the outer was already known to be non-simple.

Change-Id: I9fdfb5539b3a7989869f7190f0919699fe8e5c90
Reviewed-on: https://chromium-review.googlesource.com/c/1276630Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56589}
parent 6ec90ece
......@@ -191,10 +191,6 @@ class ExpressionClassifierBase {
// The result will continue to be a valid arrow formal parameters if the
// inner expression is a valid binding pattern.
if (productions & ArrowFormalParametersProduction) {
// Also whether we've seen any non-simple parameters
// if expecting an arrow function parameter.
this->is_non_simple_parameter_list_ |=
inner->is_non_simple_parameter_list_;
if (is_valid_arrow_formal_parameters() &&
!inner->is_valid_binding_pattern()) {
errors |= ArrowFormalParametersProduction;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment