Index: src/execution.cc |
diff --git a/src/execution.cc b/src/execution.cc |
index 9f418ac5d843e0a1f300974313e5c404e28d58fb..ecc0b5ec0c08125577dbce6fee3301f6c98fa5eb 100644 |
--- a/src/execution.cc |
+++ b/src/execution.cc |
@@ -166,8 +166,7 @@ MaybeHandle<Object> Execution::Call(Isolate* isolate, |
// In sloppy mode, convert receiver. |
if (convert_receiver && !receiver->IsJSReceiver() && |
- !func->shared()->native() && |
- func->shared()->strict_mode() == SLOPPY) { |
+ !func->shared()->native() && is_sloppy(func->shared()->language_mode())) { |
if (receiver->IsUndefined() || receiver->IsNull()) { |
receiver = handle(func->global_proxy()); |
DCHECK(!receiver->IsJSBuiltinsObject()); |