• Marja Hölttä's avatar
    [parser] Fix class variable redeclaration · 6de4e210
    Marja Hölttä authored
    ParserBase::ParseClassLiteral and BaseConsumedPreparseData::RestoreDataForScope
    both declare the class variable, but the logic is so complex
    that they sometimes ended up both declaring it.
    
    This is further complicated by some of the variable values (esp.
    inner_scope_calls_eval_) potentially changing in between, so we can't
    just redo the same logic any more.
    
    Forcefully make it work by making RestoreDataForScope declare the variable
    iff ParseClassLiteral didn't.
    
    Bug: chromium:1245870
    Change-Id: I777fd9d78145240448fc25709d2b118977d91056
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3140596
    Commit-Queue: Marja Hölttä <marja@chromium.org>
    Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#76654}
    6de4e210
Name
Last commit
Last update
..
DIR_METADATA Loading commit data...
OWNERS Loading commit data...
expression-scope.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
import-assertions.cc Loading commit data...
import-assertions.h Loading commit data...
keywords-gen.h Loading commit data...
keywords.txt Loading commit data...
literal-buffer.cc Loading commit data...
literal-buffer.h Loading commit data...
parse-info.cc Loading commit data...
parse-info.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
parsing.cc Loading commit data...
parsing.h Loading commit data...
pending-compilation-error-handler.cc Loading commit data...
pending-compilation-error-handler.h Loading commit data...
preparse-data-impl.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparser-logger.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner-inl.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...