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