Skip to content

Instantly share code, notes, and snippets.

@Zirak
Created March 17, 2017 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zirak/bf7d6b825234836d4a444c1cb5bf76aa to your computer and use it in GitHub Desktop.
Save Zirak/bf7d6b825234836d4a444c1cb5bf76aa to your computer and use it in GitHub Desktop.
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