| Index: src/ast.cc
|
| diff --git a/src/ast.cc b/src/ast.cc
|
| index fbefbd46f960ce347d56b8129a0e83de5b8c3843..5141a382f00100ec8dd3ab4f883fcae53a90e3ef 100644
|
| --- a/src/ast.cc
|
| +++ b/src/ast.cc
|
| @@ -234,9 +234,10 @@ LanguageMode FunctionLiteral::language_mode() const {
|
| }
|
|
|
|
|
| -bool FunctionLiteral::uses_super_property() const {
|
| - DCHECK_NOT_NULL(scope());
|
| - return scope()->uses_super_property();
|
| +bool FunctionLiteral::NeedsHomeObject(Expression* expr) {
|
| + if (expr == nullptr || !expr->IsFunctionLiteral()) return false;
|
| + DCHECK_NOT_NULL(expr->AsFunctionLiteral()->scope());
|
| + return expr->AsFunctionLiteral()->scope()->NeedsHomeObject();
|
| }
|
|
|
|
|
|
|