Bug
1887677: Correctly compute inClass predicate when validating unbound private names. r=dminor
`SharedContext::inClass()` returns whether the current `SharedContext` is within
a class definition. A class definition itself doesn't create a new `SharedContext`,
so an inner nested class definition within a computed property key of an outer
class definition was treated as if it wasn't nested within a class definition. This
led to reporting a SyntaxError when checking for unbound private names.
Calling `ParseContext::findInnermostStatement()` in addition to `SharedContext::inClass()`
fixes this issue. (We need to keep `SharedContext::inClass()` to correctly handle
lazily parsed classes.)
Differential Revision: https://phabricator.services.mozilla.com/
D205609