Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cherry-pick 6de4e210688e from v8 #31502

Merged
merged 2 commits into from
Oct 22, 2021

Conversation

ppontes
Copy link
Member

@ppontes ppontes commented Oct 20, 2021

[parser] Fix class variable redeclaration

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: Leszek Swirski leszeks@chromium.org
Cr-Commit-Position: refs/heads/main@{#76654}

Notes: Backported fix for chromium:1245870.

@ppontes ppontes requested a review from a team as a code owner October 20, 2021 22:03
@ppontes ppontes added 14-x-y backport-check-skip Skip trop's backport validity checking semver/patch backwards-compatible bug fixes labels Oct 20, 2021
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Oct 20, 2021
@ppontes ppontes force-pushed the cherry-pick/14-x-y/v8/6de4e210688e branch from 364aab3 to 6144dae Compare October 22, 2021 08:57
@zcbenz zcbenz merged commit eecda46 into 14-x-y Oct 22, 2021
@zcbenz zcbenz deleted the cherry-pick/14-x-y/v8/6de4e210688e branch October 22, 2021 12:14
@release-clerk
Copy link

release-clerk bot commented Oct 22, 2021

Release Notes Persisted

Backported fix for chromium:1245870.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
14-x-y backport-check-skip Skip trop's backport validity checking security 🔒 semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants