diff --git a/include/v8-fast-api-calls.h b/include/v8-fast-api-calls.h index 0cb765431b..7568ac9f30 100644 --- a/include/v8-fast-api-calls.h +++ b/include/v8-fast-api-calls.h @@ -782,7 +782,7 @@ using CFunctionBuilder = internal::CFunctionBuilder; * to the requested destination type, is considered unsupported. The operation * returns true on success. `type_info` will be used for conversions. */ -template +template bool CopyAndConvertArrayToCppBuffer(Local src, T* dst, uint32_t max_length); diff --git a/src/api/api-inl.h b/src/api/api-inl.h index 6ba3b6b525..9bd266395e 100644 --- a/src/api/api-inl.h +++ b/src/api/api-inl.h @@ -263,7 +263,7 @@ void CopyDoubleElementsToTypedBuffer(T* dst, uint32_t length, } } -template +template bool CopyAndConvertArrayToCppBuffer(Local src, T* dst, uint32_t max_length) { static_assert( diff --git a/src/d8/d8-test.cc b/src/d8/d8-test.cc index 395fc61c34..dced0b9424 100644 --- a/src/d8/d8-test.cc +++ b/src/d8/d8-test.cc @@ -120,7 +120,7 @@ class FastCApiObject { Type buffer[1024]; bool result = - CopyAndConvertArrayToCppBuffer(seq_arg, buffer, 1024); + CopyAndConvertArrayToCppBuffer<&type_info, Type>(seq_arg, buffer, 1024); if (!result) { options.fallback = 1; return 0; @@ -168,7 +168,7 @@ class FastCApiObject { } Type buffer[1024]; bool result = - CopyAndConvertArrayToCppBuffer(seq_arg, buffer, 1024); + CopyAndConvertArrayToCppBuffer<&type_info, Type>(seq_arg, buffer, 1024); if (!result) { isolate->ThrowError("Array conversion unsuccessful."); return;