summaryrefslogtreecommitdiff
path: root/src/req_wrap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/req_wrap.h')
-rw-r--r--src/req_wrap.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/req_wrap.h b/src/req_wrap.h
index c478ce0cdb..11c7d12044 100644
--- a/src/req_wrap.h
+++ b/src/req_wrap.h
@@ -24,8 +24,9 @@
namespace node {
-static v8::Persistent<v8::String> process_symbol;
-static v8::Persistent<v8::String> domain_symbol;
+// defined in node.cc
+extern v8::Persistent<v8::String> process_symbol;
+extern v8::Persistent<v8::String> domain_symbol;
template <typename T>
class ReqWrap {
@@ -34,12 +35,6 @@ class ReqWrap {
v8::HandleScope scope;
object_ = v8::Persistent<v8::Object>::New(v8::Object::New());
- // TODO: grab a handle to the current process.domain
- if (process_symbol.IsEmpty()) {
- process_symbol = NODE_PSYMBOL("process");
- domain_symbol = NODE_PSYMBOL("domain");
- }
-
v8::Local<v8::Value> domain = v8::Context::GetCurrent()
->Global()
->Get(process_symbol)