Skip to content

Commit deda899

Browse files
trevnorrisbnoordhuis
authored andcommitted
src: add using_domains to node_internals
Make it easy to check if domains are in use
1 parent 33fae69 commit deda899

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static bool use_debug_agent = false;
133133
static bool debug_wait_connect = false;
134134
static int debug_port=5858;
135135
static int max_stack_size = 0;
136-
static bool using_domains = false;
136+
bool using_domains = false;
137137

138138
// used by C++ modules as well
139139
bool no_deprecation = false;

src/node_internals.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ v8::Handle<v8::Value> FromConstructorTemplate(
110110
v8::Persistent<v8::FunctionTemplate> t,
111111
const v8::Arguments& args);
112112

113+
// allow for quick domain check
114+
extern bool using_domains;
115+
113116
} // namespace node
114117

115118
#endif // SRC_NODE_INTERNALS_H_

0 commit comments

Comments
 (0)