diff --git a/src/node_main_instance.h b/src/node_main_instance.h index 2719b49e976ff6..04ad277b8e825b 100644 --- a/src/node_main_instance.h +++ b/src/node_main_instance.h @@ -65,13 +65,12 @@ class NodeMainInstance { static v8::StartupData* GetEmbeddedSnapshotBlob(); static const size_t kNodeContextIndex = 0; - - private: NodeMainInstance(const NodeMainInstance&) = delete; NodeMainInstance& operator=(const NodeMainInstance&) = delete; NodeMainInstance(NodeMainInstance&&) = delete; NodeMainInstance& operator=(NodeMainInstance&&) = delete; + private: NodeMainInstance(v8::Isolate* isolate, uv_loop_t* event_loop, MultiIsolatePlatform* platform, diff --git a/src/node_native_module.h b/src/node_native_module.h index bbd4d89c4001cd..5450c63c161cf2 100644 --- a/src/node_native_module.h +++ b/src/node_native_module.h @@ -27,14 +27,16 @@ using NativeModuleCacheMap = // the its own singleton - that should be encapsulated in NativeModuleEnv // instead. class NativeModuleLoader { + public: + NativeModuleLoader(const NativeModuleLoader&) = delete; + NativeModuleLoader& operator=(const NativeModuleLoader&) = delete; + private: // Only allow access from friends. friend class NativeModuleEnv; friend class CodeCacheBuilder; NativeModuleLoader(); - NativeModuleLoader(const NativeModuleLoader&) = delete; - NativeModuleLoader& operator=(const NativeModuleLoader&) = delete; static NativeModuleLoader* GetInstance(); // Generated by tools/js2c.py as node_javascript.cc