diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index b10755498a2..016d59578fb 100644 --- a/src/node_object_wrap.h +++ b/src/node_object_wrap.h @@ -67,6 +67,7 @@ class ObjectWrap { inline void MakeWeak (void) { handle_.MakeWeak(this, WeakCallback); + handle_.MarkIndependent(); } /* Ref() marks the object as being attached to an event loop.