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 <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
gengjiawen authored and targos committed May 6, 2019
1 parent 1489d12 commit 8724229
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 8724229

Please sign in to comment.