| Index: src/execution.cc
|
| diff --git a/src/execution.cc b/src/execution.cc
|
| index 690a4e3f4e6cd8570a0b052ee643b8fedb24aa69..ac848e15a9dacb9cd1fcb7c8a3c6c6a67de9bf96 100644
|
| --- a/src/execution.cc
|
| +++ b/src/execution.cc
|
| @@ -163,9 +163,10 @@ Handle<Object> Execution::Call(Isolate* isolate,
|
| }
|
| Handle<JSFunction> func = Handle<JSFunction>::cast(callable);
|
|
|
| - // In non-strict mode, convert receiver.
|
| + // In sloppy mode, convert receiver.
|
| if (convert_receiver && !receiver->IsJSReceiver() &&
|
| - !func->shared()->native() && func->shared()->is_classic_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
|
|
|