Browse Source

domains: properly check if domains are being used

process.domain is almost never just undefined, so it was setting the
object property unnecessarily.
v0.11.6-release
Trevor Norris 12 years ago
parent
commit
e3c5019ac7
  1. 2
      src/req_wrap.h

2
src/req_wrap.h

@ -47,7 +47,7 @@ class ReqWrap {
->ToObject()
->Get(domain_symbol);
if (!domain->IsUndefined()) {
if (domain->IsObject()) {
object->Set(domain_symbol, domain);
}
}

Loading…
Cancel
Save