Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index fdd9dfb5d27140767812d556006ca0509f46c31d..27bce35988d5f40b2a0a8b623b9dfd1cfa807d3e 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6687,7 +6687,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_strict_or_extended_mode()) && |
call_kind == CALL_AS_FUNCTION) { |
inner->SetValueAt(0, undefined); |
} |