From 7c876bd72332b48b096366d3c8790c4df18fd701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 1 Jan 2023 10:27:59 +0000 Subject: [PATCH] deps: V8: add explicit constructor to CppHeapCreateParams Co-authored-by: Jiawen Geng --- common.gypi | 2 +- deps/v8/include/v8-cppgc.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index 9fcee7f066e202..5cdbee775864c8 100644 --- a/common.gypi +++ b/common.gypi @@ -36,7 +36,7 @@ # Reset this number to 0 on major V8 upgrades. # Increment by one for each non-official patch applied to deps/v8. - 'v8_embedder_string': '-node.7', + 'v8_embedder_string': '-node.8', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/include/v8-cppgc.h b/deps/v8/include/v8-cppgc.h index 3a6582cd258496..f547b9e2f385fc 100644 --- a/deps/v8/include/v8-cppgc.h +++ b/deps/v8/include/v8-cppgc.h @@ -77,6 +77,11 @@ struct WrapperDescriptor final { }; struct V8_EXPORT CppHeapCreateParams { + CppHeapCreateParams( + std::vector> custom_spaces, + WrapperDescriptor wrapper_descriptor) + : custom_spaces(std::move(custom_spaces)), + wrapper_descriptor(wrapper_descriptor) {} CppHeapCreateParams(const CppHeapCreateParams&) = delete; CppHeapCreateParams& operator=(const CppHeapCreateParams&) = delete;