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