diff --git a/include/v8-cppgc.h b/include/v8-cppgc.h index 0f18de2b12..8c7dc28b7e 100644 --- a/include/v8-cppgc.h +++ b/include/v8-cppgc.h @@ -76,12 +76,15 @@ struct WrapperDescriptor final { uint16_t embedder_id_for_garbage_collected; }; -struct V8_EXPORT CppHeapCreateParams { +struct CppHeapCreateParams { CppHeapCreateParams() = default; CppHeapCreateParams(const CppHeapCreateParams&) = delete; CppHeapCreateParams(CppHeapCreateParams&&) = default; CppHeapCreateParams &operator = (const CppHeapCreateParams&) = delete; + inline CppHeapCreateParams(WrapperDescriptor wrapper_descriptor) + : wrapper_descriptor(wrapper_descriptor) {} + std::vector> custom_spaces; WrapperDescriptor wrapper_descriptor; /**