Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index c4b97c68e5cd7ea313f04e9c06c0bae74ca4831e..18f398d7d6192fdb8f9ed8a90f60309dbaa4e5bc 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -4153,8 +4153,7 @@ |
} // namespace |
-MaybeHandle<Object> Builtins::InvokeApiFunction(bool is_construct, |
- Handle<HeapObject> function, |
+MaybeHandle<Object> Builtins::InvokeApiFunction(Handle<HeapObject> function, |
Handle<Object> receiver, |
int argc, |
Handle<Object> args[]) { |
@@ -4176,8 +4175,7 @@ |
{ |
auto isolate = function->GetIsolate(); |
RelocatableArguments arguments(isolate, argc + 2, &argv[argc + 1]); |
- result = is_construct ? HandleApiCallHelper<true>(isolate, arguments) |
- : HandleApiCallHelper<false>(isolate, arguments); |
+ result = HandleApiCallHelper<false>(isolate, arguments); |
} |
if (argv != small_argv) { |
delete[] argv; |