Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 5be72c6684196a9b57189a941404242d3e100f54..934f4be17df9ba94d75435a79e9d8e23e8d557cd 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -1507,7 +1507,7 @@ |
// Determine the Typer operation flags. |
Typer::Flags flags = Typer::kNoFlags; |
if (is_sloppy(info()->shared_info()->language_mode()) && |
- info()->shared_info()->IsUserJavaScript()) { |
+ !info()->shared_info()->IsBuiltin()) { |
// Sloppy mode functions always have an Object for this. |
flags |= Typer::kThisIsReceiver; |
} |