| Index: src/compiler/js-call-reducer.cc
|
| diff --git a/src/compiler/js-call-reducer.cc b/src/compiler/js-call-reducer.cc
|
| index e48fce91c4dac3f17d0944ae7dd05b3bc64f4c63..de1a75a71f6ef02769b39a48b7b60f26caa4e1dd 100644
|
| --- a/src/compiler/js-call-reducer.cc
|
| +++ b/src/compiler/js-call-reducer.cc
|
| @@ -412,7 +412,8 @@ Reduction JSCallReducer::ReduceJSCallConstruct(Node* node) {
|
| if (!function->IsConstructor()) {
|
| NodeProperties::ReplaceValueInputs(node, target);
|
| NodeProperties::ChangeOp(
|
| - node, javascript()->CallRuntime(Runtime::kThrowCalledNonCallable));
|
| + node, javascript()->CallRuntime(
|
| + Runtime::kThrowConstructedNonConstructable));
|
| return Changed(node);
|
| }
|
|
|
|
|