| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index d3f063029bdb141b254fc1eebb2907f27e4e995a..4bc4e8031845018c00bc389946038d4e2520f0c0 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -328,9 +328,8 @@ base::SmartArrayPointer<char> CompilationInfo::GetDebugName() const {
|
| }
|
|
|
|
|
| -bool CompilationInfo::MustReplaceUndefinedReceiverWithGlobalProxy() {
|
| - return is_sloppy(language_mode()) && !is_native() &&
|
| - scope()->has_this_declaration() && scope()->receiver()->is_used();
|
| +bool CompilationInfo::ExpectsJSReceiverAsReceiver() {
|
| + return is_sloppy(language_mode()) && !is_native();
|
| }
|
|
|
|
|
|
|