Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 54a0903196f372af7d5e6d51ed7a37b35d00b314..67abab5cb687e89ae79a80633b73e64ac269c4a3 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -223,8 +223,7 @@ bool CompilationInfo::is_simple_parameter_list() { |
bool CompilationInfo::MayUseThis() const { |
- return scope()->uses_this() || scope()->inner_uses_this() || |
- scope()->calls_sloppy_eval(); |
+ return scope()->has_this_declaration() && scope()->receiver()->is_used(); |
} |