From 8724229155029ff4e11b2c4bad10b2ff39c4764a Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Wed, 1 May 2019 13:27:17 +0800 Subject: [PATCH] src: make deleted function public in node_native_module.h PR-URL: https://github.com/nodejs/node/pull/27509 Reviewed-By: Ben Noordhuis Reviewed-By: Anna Henningsen --- src/node_native_module.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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