| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 4b7528b596f6f02b78cdbcb33d59aa015146a09f..1e8122562102bce334b36e713609f3d3b76a4e03 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -6748,7 +6748,7 @@ HEnvironment* HEnvironment::CopyForInlining(
|
| // If the function we are inlining is a strict mode function or a
|
| // builtin function, pass undefined as the receiver for function
|
| // calls (instead of the global receiver).
|
| - if ((target->shared()->native() || function->strict_mode()) &&
|
| + if ((target->shared()->native() || !function->is_classic_mode()) &&
|
| call_kind == CALL_AS_FUNCTION) {
|
| inner->SetValueAt(0, undefined);
|
| }
|
|
|