diff options
Diffstat (limited to 'deps/v8/src/parsing/expression-scope.h')
-rw-r--r-- | deps/v8/src/parsing/expression-scope.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/deps/v8/src/parsing/expression-scope.h b/deps/v8/src/parsing/expression-scope.h index ba931d36da..709231ebb0 100644 --- a/deps/v8/src/parsing/expression-scope.h +++ b/deps/v8/src/parsing/expression-scope.h @@ -625,14 +625,8 @@ class AccumulationScope { if (!scope->CanBeExpression()) return; scope_ = scope->AsExpressionParsingScope(); for (int i = 0; i < kNumberOfErrors; i++) { - // If the underlying scope is already invalid at the start, stop - // accumulating. That means an error was found outside of an - // accumulating path. - if (!scope_->is_valid(i)) { - scope_ = nullptr; - break; - } copy(i); + scope_->clear(i); } } |