diff --git a/src/req_wrap.h b/src/req_wrap.h index 794e4f3769..eb73f0673b 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); } }