From 2ca227f64238e8900d519310c69ac54d16a56729 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Thu, 14 Dec 2017 10:49:55 -0800 Subject: fs: refactor FSReqWrap and After Separate FSReqWrap definition into a new node_file.h. Add Reject and Resolve methods to encapsulate the callbacks and make the constructor, destructor protected instead of private in preparation to make FSReqWrap subclassable for the Promises implementation. Rework and simplify the After function slightly in preparation for a refactor. Introduce the node::fs namespace instead of using an anonymous namespace for fs methods. PR-URL: https://github.com/nodejs/node/pull/17689 Reviewed-By: Anna Henningsen --- node.gyp | 1 + 1 file changed, 1 insertion(+) (limited to 'node.gyp') diff --git a/node.gyp b/node.gyp index e362b67830..5d4650e560 100644 --- a/node.gyp +++ b/node.gyp @@ -261,6 +261,7 @@ 'src/node_buffer.h', 'src/node_constants.h', 'src/node_debug_options.h', + 'src/node_file.h', 'src/node_http2.h', 'src/node_http2_state.h', 'src/node_internals.h', -- cgit v1.2.3