Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 9c83380492f6158b14d3c181c345980ddb44936d..805e08762f0298c957dd8edfc467e0f3caa33366 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7693,7 +7693,7 @@ HEnvironment* HEnvironment::CopyForInlining( |
// builtin function, pass undefined as the receiver for function |
// calls (instead of the global receiver). |
if ((target->shared()->native() || !function->is_classic_mode()) && |
- call_kind == CALL_AS_FUNCTION) { |
+ call_kind == CALL_AS_FUNCTION && !is_construct) { |
inner->SetValueAt(0, undefined); |
} |
inner->SetValueAt(arity + 1, LookupContext()); |