diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-12-16 01:32:39 +0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-12-17 16:21:25 -0800 |
commit | 19a920564585f1c223fb137408d615932609da0b (patch) | |
tree | 36caaa8ccf156b25a98db745eee542c0629ac220 /node.gyp | |
parent | 47ecf2060343705a26eaa7f7d0be242cb6d84cf8 (diff) | |
download | android-node-v8-19a920564585f1c223fb137408d615932609da0b.tar.gz android-node-v8-19a920564585f1c223fb137408d615932609da0b.tar.bz2 android-node-v8-19a920564585f1c223fb137408d615932609da0b.zip |
process: move environment variable proxy code into node_env_var.cc
Instead of exposing all the NamedPropertyHandlerConfiguration()
parameters in node_internals, simply expose a CreateEnvVarProxy()
method that returns a Local<Value> that implements process.env,
and mark all the property handlers static in node_env_var.cc.
This makes the code more encapsulated.
PR-URL: https://github.com/nodejs/node/pull/25067
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -352,6 +352,7 @@ 'src/node_contextify.cc', 'src/node_domain.cc', 'src/node_encoding.cc', + 'src/node_env_var.cc', 'src/node_errors.cc', 'src/node_file.cc', 'src/node_http_parser_llhttp.cc', |