Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index a0e93d79619a332f0eb285aeaa4872f7bcd993ad..1517cdb1ec1bc72e9e2c4839cfdb10b30ad07767 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(); |
} |