summaryrefslogtreecommitdiff
path: root/src/node_config.cc
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-12-11 23:17:43 +0800
committerRich Trott <rtrott@gmail.com>2018-12-13 17:21:36 -0800
commite9892698655af635f665b7250277fa4c68321313 (patch)
tree4e85fcfd8f585762af4313d2eff7f5e3faf69b17 /src/node_config.cc
parent7ee61fb3e564317cc64b78c78b8d926acedd2fc9 (diff)
downloadandroid-node-v8-e9892698655af635f665b7250277fa4c68321313.tar.gz
android-node-v8-e9892698655af635f665b7250277fa4c68321313.tar.bz2
android-node-v8-e9892698655af635f665b7250277fa4c68321313.zip
src: remove internalBinding('config').warningFile
Instead use `require('internal/options')` lazily. Also refactor the call site a bit so that the option is queried only once since it's synchronous anyway. PR-URL: https://github.com/nodejs/node/pull/24959 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/node_config.cc')
-rw-r--r--src/node_config.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/node_config.cc b/src/node_config.cc
index 27ec44b8d3..a8ffac2cc1 100644
--- a/src/node_config.cc
+++ b/src/node_config.cc
@@ -90,11 +90,6 @@ static void Initialize(Local<Object> target,
"bits",
Number::New(env->isolate(), 8 * sizeof(intptr_t)));
- const std::string& warning_file = env->options()->redirect_warnings;
- if (!warning_file.empty()) {
- READONLY_STRING_PROPERTY(target, "warningFile", warning_file);
- }
-
Local<Object> debug_options_obj = Object::New(isolate);
READONLY_PROPERTY(target, "debugOptions", debug_options_obj);