Skip to content

Commit e3c5019

Browse files
committed
domains: properly check if domains are being used
process.domain is almost never just undefined, so it was setting the object property unnecessarily.
1 parent 166c405 commit e3c5019

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/req_wrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ReqWrap {
4747
->ToObject()
4848
->Get(domain_symbol);
4949

50-
if (!domain->IsUndefined()) {
50+
if (domain->IsObject()) {
5151
object->Set(domain_symbol, domain);
5252
}
5353
}

0 commit comments

Comments
 (0)