Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 8d8ef9e4ea919fafa6e30b18fc0c31cdb20b5fcf..bd370e4eede7460cc5032b28456dacae1e2efcd1 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5906,11 +5906,10 @@ HEnvironment* HEnvironment::CopyForInlining( |
inner->SetValueAt(i, push); |
} |
} |
- // 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()) && |
- call_kind == CALL_AS_FUNCTION) { |
+ // If the function we are inlining is a strict mode function, pass |
+ // undefined as the receiver for function calls (instead of the |
+ // global receiver). |
+ if (function->strict_mode() && call_kind == CALL_AS_FUNCTION) { |
inner->SetValueAt(0, undefined); |
} |
inner->SetValueAt(arity + 1, outer->LookupContext()); |