From e3c5019ac70cbd23f1104a8d911ceae1e8990842 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Tue, 6 Aug 2013 15:42:47 -0700 Subject: [PATCH] domains: properly check if domains are being used process.domain is almost never just undefined, so it was setting the object property unnecessarily. --- src/req_wrap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/req_wrap.h b/src/req_wrap.h index 794e4f3..eb73f06 100644 --- a/src/req_wrap.h +++ b/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); } } -- 2.7.4