| Index: src/scopes.cc
|
| diff --git a/src/scopes.cc b/src/scopes.cc
|
| index 4374b7e6e4ebe51daafeb44316adaef5a7866caf..b8c357c47ec3ef30ea547493b60949aa93d9aaed 100644
|
| --- a/src/scopes.cc
|
| +++ b/src/scopes.cc
|
| @@ -1157,6 +1157,7 @@ bool Scope::CheckStrongModeDeclaration(VariableProxy* proxy, Variable* var) {
|
|
|
| Variable* Scope::ClassVariableForMethod() const {
|
| if (!is_function_scope()) return nullptr;
|
| + if (IsInObjectLiteral(function_kind_)) return nullptr;
|
| if (!IsConciseMethod(function_kind_) && !IsConstructor(function_kind_) &&
|
| !IsAccessorFunction(function_kind_)) {
|
| return nullptr;
|
|
|