| Index: src/builtins/x64/builtins-x64.cc
|
| diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc
|
| index c824859ff4391ea38cc66902f999cf48e1076603..29246ffbd8e1e454d3766fc2694302d6ada45344 100644
|
| --- a/src/builtins/x64/builtins-x64.cc
|
| +++ b/src/builtins/x64/builtins-x64.cc
|
| @@ -1610,7 +1610,7 @@ void Builtins::Generate_ReflectConstruct(MacroAssembler* masm) {
|
| {
|
| StackArgumentsAccessor args(rsp, 0);
|
| __ movp(args.GetReceiverOperand(), rdi);
|
| - __ TailCallRuntime(Runtime::kThrowCalledNonCallable);
|
| + __ TailCallRuntime(Runtime::kThrowNotConstructor);
|
| }
|
|
|
| // 4c. The new.target is not a constructor, throw an appropriate TypeError.
|
| @@ -1618,7 +1618,7 @@ void Builtins::Generate_ReflectConstruct(MacroAssembler* masm) {
|
| {
|
| StackArgumentsAccessor args(rsp, 0);
|
| __ movp(args.GetReceiverOperand(), rdx);
|
| - __ TailCallRuntime(Runtime::kThrowCalledNonCallable);
|
| + __ TailCallRuntime(Runtime::kThrowNotConstructor);
|
| }
|
| }
|
|
|
|
|