DescriptionAlways give class literals a block scope
Re-land of https://crrev.com/cf13dda1ba25e8293ea143f33c6c5f6233a39c86,
fixing the issue with vector stores.
Class methods always have the class scope on their scope chain in order
to implement strong mode checks. Previously, that scope wasn't attached
to the ClassLiteral for anonymous classes (since the scope contained
no bindings).
This patch simply puts that same scope on the ClassLiteral, anonymous
or not, which simplifies other code that needs to reason about the scope
of a class and its methods.
Committed: https://crrev.com/b065411f81e1fff769de691d8494d6f75c7132a9
Cr-Commit-Position: refs/heads/master@{#31381}
Patch Set 1 #Patch Set 2 : Fix vector stores #
Messages
Total messages: 8 (3 generated)
|