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