summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-12-16 01:32:39 +0800
committerRich Trott <rtrott@gmail.com>2018-12-17 16:21:25 -0800
commit19a920564585f1c223fb137408d615932609da0b (patch)
tree36caaa8ccf156b25a98db745eee542c0629ac220 /node.gyp
parent47ecf2060343705a26eaa7f7d0be242cb6d84cf8 (diff)
downloadandroid-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.gyp1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index cf334c4ace..db8443d813 100644
--- a/node.gyp
+++ b/node.gyp
@@ -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',