Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-02-08 02:37:04 +0300
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-02-19 11:38:20 +0300
commitb200a46befd936cbf1b5356045d88ba9e8156e87 (patch)
treede7068e4e5eb68e97595d32e2b0473b53f19760d /src/node_config.cc
parenta99316065d7e3dcb452d6f50da42c8f804600c9b (diff)
src: remove `process.binding('config').debugOptions`
`process.binding('config').debugOptions`, which contains the initial values of parsed debugger-related CLI options, has been used for internal testing. This patch removes them and uses `internal/options` to query the values in the tests instead. PR-URL: https://github.com/nodejs/node/pull/25999 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_config.cc')
-rw-r--r--src/node_config.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/node_config.cc b/src/node_config.cc
index d9b2c8112eb..c051e1186af 100644
--- a/src/node_config.cc
+++ b/src/node_config.cc
@@ -6,9 +6,7 @@
namespace node {
-using v8::Boolean;
using v8::Context;
-using v8::Integer;
using v8::Isolate;
using v8::Local;
using v8::Number;
@@ -72,19 +70,6 @@ static void Initialize(Local<Object> target,
READONLY_PROPERTY(target,
"bits",
Number::New(env->isolate(), 8 * sizeof(intptr_t)));
-
- Local<Object> debug_options_obj = Object::New(isolate);
- READONLY_PROPERTY(target, "debugOptions", debug_options_obj);
-
- const DebugOptions& debug_options = env->options()->debug_options();
- READONLY_PROPERTY(debug_options_obj,
- "inspectorEnabled",
- Boolean::New(isolate, debug_options.inspector_enabled));
- READONLY_STRING_PROPERTY(
- debug_options_obj, "host", debug_options.host_port.host());
- READONLY_PROPERTY(debug_options_obj,
- "port",
- Integer::New(isolate, debug_options.host_port.port()));
} // InitConfig
} // namespace node