| Index: src/ic.cc
|
| diff --git a/src/ic.cc b/src/ic.cc
|
| index b6b061470382ee856c2deed0757334f741278a50..2c6d55b93fce474d6c9452de3705604f09fcc05a 100644
|
| --- a/src/ic.cc
|
| +++ b/src/ic.cc
|
| @@ -435,7 +435,7 @@ void CallICBase::ReceiverToObjectIfRequired(Handle<Object> callee,
|
|
|
| if (callee->IsJSFunction()) {
|
| Handle<JSFunction> function = Handle<JSFunction>::cast(callee);
|
| - if (function->shared()->strict_mode() || function->IsBuiltin()) {
|
| + if (!function->shared()->is_classic_mode() || function->IsBuiltin()) {
|
| // Do not wrap receiver for strict mode functions or for builtins.
|
| return;
|
| }
|
|
|