Description[parser] Simplify parse-time function name inference for properties
Move the code to perform function name inference for properties into
parsing the properties themselves, instead of the containing object.
This allows us to avoid unnecessary calls when parsing shorthand
properties and methods and simplifies the logic in the remaining cases.
Also fixes an edge case bug: inferring the name of the getter in
`class { static get constructor(){} }`.
Committed: https://crrev.com/2aab10f5b329a569de91ac36bcd28e4a6a9941aa
Cr-Commit-Position: refs/heads/master@{#39222}
Patch Set 1 #
Messages
Total messages: 9 (4 generated)
|