8000 chore: cherry-pick 6a4cd97d6691 from v8 by nornagon · Pull Request #26207 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: cherry-pick 6a4cd97d6691 from v8 #26207

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

Merged
merged 3 commits into from
Oct 28, 2020

Conversation

nornagon
Copy link
Contributor

Merged: [parser] Fix AST func reindexing for function fields

AST reindexing has to skip visiting fields that are already in the
member initializer, as they will have already been visited when
visiting said initializer. This is the case for private fields and
fields with computed names.

However, the reindexer was incorrectly assuming that all properties
with a FunctionLiteral value are methods (and thus not fields, and
can safely be visited). This is not the case for fields with
function expression values.

Now, we correctly use the class property's "kind" when making this
visitation decision.

(cherry picked from commit a769ea7a4462115579ba87bc16fbffbae01310c1)

Bug: chromium:1132111
Tbr: leszeks@chromium.org
No-Try: true
No-Presubmit: true
No-Tree-Checks: true
Change-Id: I33ac5664bb5334e964d351de1ba7e2c57f3398f8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2465056
Commit-Queue: Adam Klein adamk@chromium.org
Reviewed-by: Adam Klein adamk@chromium.org
Cr-Commit-Position: refs/branch-heads/8.6@{#24}
Cr-Branched-From: a64aed2333abf49e494d2a5ce24bbd14fff19f60-refs/heads/8.6.395@{#1}
Cr-Branched-From: a626bc036236c9bf92ac7b87dc40c9e538b087e3-refs/heads/master@{#69472}

Notes: Security: backported fix for chromium:1132111.

@nornagon nornagon requested a review from a team as a code owner October 27, 2020 20:53
@nornagon nornagon added 9-x-y backport-check-skip Skip trop's backport validity checking labels Oct 27, 2020
@electron-cation electron-cation bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Oct 27, 2020
@nornagon nornagon merged commit 305d623 into 9-x-y Oct 28, 2020
@release-clerk
Copy link
release-clerk bot commented Oct 28, 2020

Release Notes Persisted

Security: backported fix for chromium:1132111.

@nornagon nornagon deleted the cherry-pick/9-x-y/v8/6a4cd97d6691 branch October 28, 2020 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9-x-y backport-check-skip Skip trop's backport validity checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0