summaryrefslogtreecommitdiff
path: root/src/node_object_wrap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_object_wrap.h')
-rw-r--r--src/node_object_wrap.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h
index 683123559f..538af3520d 100644
--- a/src/node_object_wrap.h
+++ b/src/node_object_wrap.h
@@ -45,7 +45,8 @@ class NODE_EXTERN ObjectWrap {
virtual ~ObjectWrap() {
- if (persistent().IsEmpty()) return;
+ if (persistent().IsEmpty())
+ return;
assert(persistent().IsNearDeath());
persistent().ClearWeak();
persistent().Dispose();
@@ -117,7 +118,8 @@ class NODE_EXTERN ObjectWrap {
assert(!persistent().IsEmpty());
assert(!persistent().IsWeak());
assert(refs_ > 0);
- if (--refs_ == 0) MakeWeak();
+ if (--refs_ == 0)
+ MakeWeak();
}
int refs_; // ro