projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
166c405
)
domains: properly check if domains are being used
author
Trevor Norris
<trev.norris@gmail.com>
Tue, 6 Aug 2013 22:42:47 +0000
(15:42 -0700)
committer
Trevor Norris
<trev.norris@gmail.com>
Tue, 6 Aug 2013 22:42:47 +0000
(15:42 -0700)
process.domain is almost never just undefined, so it was setting the
object property unnecessarily.
src/req_wrap.h
patch
|
blob
|
history
diff --git
a/src/req_wrap.h
b/src/req_wrap.h
index
794e4f3
..
eb73f06
100644
(file)
--- 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);
}
}