Index: src/execution.cc |
diff --git a/src/execution.cc b/src/execution.cc |
index 6598ebe0f48bdf527923dad4e0bfbe70680461f2..ac848e15a9dacb9cd1fcb7c8a3c6c6a67de9bf96 100644 |
--- a/src/execution.cc |
+++ b/src/execution.cc |
@@ -165,7 +165,8 @@ Handle<Object> Execution::Call(Isolate* isolate, |
// In sloppy mode, convert receiver. |
if (convert_receiver && !receiver->IsJSReceiver() && |
- !func->shared()->native() && func->shared()->is_sloppy_mode()) { |
+ !func->shared()->native() && |
+ func->shared()->strict_mode() == SLOPPY) { |
if (receiver->IsUndefined() || receiver->IsNull()) { |
Object* global = func->context()->global_object()->global_receiver(); |
// Under some circumstances, 'global' can be the JSBuiltinsObject |