|
@@ -1,54 +0,0 @@
|
|
|
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
-From: Cheng Zhao <[email protected]>
|
|
|
-Date: Fri, 29 Mar 2019 17:17:30 +0900
|
|
|
-Subject: fix: do not define DebugOptions's constructors in header
|
|
|
-
|
|
|
-The e3ca89ef49 changed NODE_EXTERN to always expose symbols for
|
|
|
-DebugOptions, and since the constructors of DebugOptions are defined in
|
|
|
-header, the compiler would end up generating no constructor
|
|
|
-implementations for DebugOptions.
|
|
|
-
|
|
|
-Which means we would encounter crash when constructors of DebugOptions
|
|
|
-is called.
|
|
|
-
|
|
|
-By putting the definitions of constructors into the implementation file,
|
|
|
-we can avoid this problem.
|
|
|
-
|
|
|
-diff --git a/src/node_options.cc b/src/node_options.cc
|
|
|
-index 2dd90e9a8cf9381c8608b73ead247bcf86b72ab9..051e7b084b6770215bd009b0e37feabbb7df7389 100644
|
|
|
---- a/src/node_options.cc
|
|
|
-+++ b/src/node_options.cc
|
|
|
-@@ -26,6 +26,12 @@ Mutex cli_options_mutex;
|
|
|
- std::shared_ptr<PerProcessOptions> cli_options{new PerProcessOptions()};
|
|
|
- } // namespace per_process
|
|
|
-
|
|
|
-+DebugOptions::DebugOptions() = default;
|
|
|
-+DebugOptions::DebugOptions(const DebugOptions&) = default;
|
|
|
-+DebugOptions::DebugOptions(DebugOptions&&) = default;
|
|
|
-+DebugOptions& DebugOptions::operator=(const DebugOptions&) = default;
|
|
|
-+DebugOptions& DebugOptions::operator=(DebugOptions&&) = default;
|
|
|
-+
|
|
|
- void DebugOptions::CheckOptions(std::vector<std::string>* errors) {
|
|
|
- #if !NODE_USE_V8_PLATFORM && !HAVE_INSPECTOR
|
|
|
- if (inspector_enabled) {
|
|
|
-diff --git a/src/node_options.h b/src/node_options.h
|
|
|
-index 40c19ea6ff4d98a1a1da59bca76087209445af81..4ce5551284bb5b1b4194905a9fe619f852933405 100644
|
|
|
---- a/src/node_options.h
|
|
|
-+++ b/src/node_options.h
|
|
|
-@@ -61,11 +61,11 @@ struct InspectPublishUid {
|
|
|
- // per-Isolate, rather than per-Environment.
|
|
|
- class NODE_EXTERN DebugOptions : public Options {
|
|
|
- public:
|
|
|
-- DebugOptions() = default;
|
|
|
-- DebugOptions(const DebugOptions&) = default;
|
|
|
-- DebugOptions& operator=(const DebugOptions&) = default;
|
|
|
-- DebugOptions(DebugOptions&&) = default;
|
|
|
-- DebugOptions& operator=(DebugOptions&&) = default;
|
|
|
-+ DebugOptions();
|
|
|
-+ DebugOptions(const DebugOptions&);
|
|
|
-+ DebugOptions& operator=(const DebugOptions&);
|
|
|
-+ DebugOptions(DebugOptions&&);
|
|
|
-+ DebugOptions& operator=(DebugOptions&&);
|
|
|
-
|
|
|
- // --inspect
|
|
|
- bool inspector_enabled = false;
|