Index: src/compiler/js-call-reducer.cc |
diff --git a/src/compiler/js-call-reducer.cc b/src/compiler/js-call-reducer.cc |
index 98a9b6e6943b3b1241b28192f9830d487bd2c052..7d661da69e63bfbd2f9405404ffb98e4dccf5b3d 100644 |
--- a/src/compiler/js-call-reducer.cc |
+++ b/src/compiler/js-call-reducer.cc |
@@ -216,10 +216,10 @@ Reduction JSCallReducer::ReduceJSCallFunction(Node* node) { |
// Raise a TypeError if the {target} is a "classConstructor". |
if (IsClassConstructor(shared->kind())) { |
NodeProperties::RemoveFrameStateInput(node, 0); |
- NodeProperties::RemoveValueInputs(node); |
+ NodeProperties::ReplaceValueInputs(node, target); |
NodeProperties::ChangeOp( |
node, javascript()->CallRuntime( |
- Runtime::kThrowConstructorNonCallableError, 0)); |
+ Runtime::kThrowConstructorNonCallableError, 1)); |
return Changed(node); |
} |