Skip to content

Commit

Permalink
src: make deleted function public in node_native_module.h
Browse files Browse the repository at this point in the history
PR-URL: #27509
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
gengjiawen authored and danbev committed May 6, 2019
1 parent 64a25b8 commit 8c94d5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/node_native_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c94d5e

Please sign in to comment.