DescriptionAlways give class literals a block scope
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/cf13dda1ba25e8293ea143f33c6c5f6233a39c86
Cr-Commit-Position: refs/heads/master@{#31371}
Patch Set 1 #Patch Set 2 : TurboFan cleanup #
Messages
Total messages: 11 (3 generated)
|