From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 19 Nov 2020 13:12:56 -0600 Subject: chore: disallow copying CppHeapCreateParams Experimental commit to resolve FTBS https://ci.appveyor.com/project/electron-bot/electron-ljo26/builds/36405680#L25345 which introduces a new struct CppHeapCreateParams that aggregates a vector of unique_ptrs. Our Windows CI is unhappy that this struct implicitly deletes its copy ctor, so this commit makes it explicit. Xref: https://chromium-review.googlesource.com/c/v8/v8/+/2536642 diff --git a/include/v8-cppgc.h b/include/v8-cppgc.h index 8a0d9cb9a0737e1642d666754926485b06136e98..31cb7545a37911f64597476eb4c4eb40da178c3f 100644 --- a/include/v8-cppgc.h +++ b/include/v8-cppgc.h @@ -25,8 +25,13 @@ namespace internal { class CppHeap; } // namespace internal -struct V8_EXPORT CppHeapCreateParams { +class V8_EXPORT CppHeapCreateParams { + public: std::vector> custom_spaces; + + private: + CppHeapCreateParams (const CppHeapCreateParams&) =delete; + CppHeapCreateParams& operator=(const CppHeapCreateParams&) =delete; }; /** diff --git a/include/v8.h b/include/v8.h index 784b90ccc9e86796bf45f1e7a87a6d0085b4bbb2..b8fa05588a7b6717a4f14e0019d57b9a78150100 100644 --- a/include/v8.h +++ b/include/v8.h @@ -49,7 +49,7 @@ class BooleanObject; class CFunction; class Context; class CppHeap; -struct CppHeapCreateParams; +class CppHeapCreateParams; class Data; class Date; class External;