summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/base_object-inl.h1
-rw-r--r--src/node_api.cc2
-rw-r--r--src/node_buffer.cc1
-rw-r--r--src/node_contextify.cc1
-rw-r--r--src/node_object_wrap.h1
5 files changed, 0 insertions, 6 deletions
diff --git a/src/base_object-inl.h b/src/base_object-inl.h
index 51ef465996..5ff211f473 100644
--- a/src/base_object-inl.h
+++ b/src/base_object-inl.h
@@ -70,7 +70,6 @@ inline void BaseObject::MakeWeak(Type* ptr) {
v8::Local<v8::Object> handle = object();
CHECK_GT(handle->InternalFieldCount(), 0);
Wrap(handle, ptr);
- persistent_handle_.MarkIndependent();
persistent_handle_.SetWeak<Type>(ptr, WeakCallback<Type>,
v8::WeakCallbackType::kParameter);
}
diff --git a/src/node_api.cc b/src/node_api.cc
index 3a02e5effa..ea7ddba77d 100644
--- a/src/node_api.cc
+++ b/src/node_api.cc
@@ -387,7 +387,6 @@ class Reference : private Finalizer {
if (initial_refcount == 0) {
_persistent.SetWeak(
this, FinalizeCallback, v8::WeakCallbackType::kParameter);
- _persistent.MarkIndependent();
}
}
@@ -431,7 +430,6 @@ class Reference : private Finalizer {
if (--_refcount == 0) {
_persistent.SetWeak(
this, FinalizeCallback, v8::WeakCallbackType::kParameter);
- _persistent.MarkIndependent();
}
return _refcount;
diff --git a/src/node_buffer.cc b/src/node_buffer.cc
index b00886f5e6..38b473b8ce 100644
--- a/src/node_buffer.cc
+++ b/src/node_buffer.cc
@@ -144,7 +144,6 @@ CallbackInfo::CallbackInfo(Isolate* isolate,
persistent_.SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
persistent_.SetWrapperClassId(BUFFER_ID);
- persistent_.MarkIndependent();
isolate->AdjustAmountOfExternalAllocatedMemory(sizeof(*this));
}
diff --git a/src/node_contextify.cc b/src/node_contextify.cc
index ce23576501..68251004d5 100644
--- a/src/node_contextify.cc
+++ b/src/node_contextify.cc
@@ -104,7 +104,6 @@ ContextifyContext::ContextifyContext(
if (context_.IsEmpty())
return;
context_.SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
- context_.MarkIndependent();
}
diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h
index 37c759fb89..b8ed2f9913 100644
--- a/src/node_object_wrap.h
+++ b/src/node_object_wrap.h
@@ -83,7 +83,6 @@ class ObjectWrap {
inline void MakeWeak(void) {
persistent().SetWeak(this, WeakCallback, v8::WeakCallbackType::kParameter);
- persistent().MarkIndependent();
}
/* Ref() marks the object as being attached to an event loop.