Created
March 17, 2017 14:24
-
-
Save Zirak/bf7d6b825234836d4a444c1cb5bf76aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ast/scopes.h b/src/ast/scopes.h | |
index ac3e948..60a182f 100644 | |
--- a/src/ast/scopes.h | |
+++ b/src/ast/scopes.h | |
@@ -635,10 +635,7 @@ class DeclarationScope : public Scope { | |
bool uses_super_property() const { return scope_uses_super_property_; } | |
bool NeedsHomeObject() const { | |
- return scope_uses_super_property_ || | |
- (inner_scope_calls_eval_ && (IsConciseMethod(function_kind()) || | |
- IsAccessorFunction(function_kind()) || | |
- IsClassConstructor(function_kind()))); | |
+ return true; | |
} | |
bool was_lazily_parsed() const { return was_lazily_parsed_; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment