From 9d522225e7907b6cf631975b34f586984f698e33 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 12 Apr 2017 19:17:24 +0200 Subject: src: reduce number of exported symbols Use `static` definitions and anonymous namespaces to reduce the number of symbols that are exported from the `node` binary. PR-URL: https://github.com/nodejs/node/pull/12366 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell --- src/fs_event_wrap.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/fs_event_wrap.cc') diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc index ce272362c4..a747f71c40 100644 --- a/src/fs_event_wrap.cc +++ b/src/fs_event_wrap.cc @@ -43,6 +43,8 @@ using v8::Object; using v8::String; using v8::Value; +namespace { + class FSEventWrap: public HandleWrap { public: static void Initialize(Local target, @@ -214,6 +216,7 @@ void FSEventWrap::Close(const FunctionCallbackInfo& args) { HandleWrap::Close(args); } +} // anonymous namespace } // namespace node NODE_MODULE_CONTEXT_AWARE_BUILTIN(fs_event_wrap, node::FSEventWrap::Initialize) -- cgit v1.2.3