Skip to content

Commit 91b4df4

Browse files
committed
Do not reset globals when set as returnvalues
1 parent e803d1b commit 91b4df4

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

nan_callbacks_12_inl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class ReturnValue {
3838
value_.Set(handle);
3939
#else
4040
value_.Set(*reinterpret_cast<const v8::Persistent<S>*>(&handle));
41-
const_cast<Global<S> &>(handle).Reset();
4241
#endif
4342
}
4443

nan_callbacks_pre_12_inl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class ReturnValue {
4040
TYPE_CHECK(T, S);
4141
value_->Dispose();
4242
*value_ = v8::Persistent<T>::New(handle.persistent);
43-
const_cast<Global<S> &>(handle).Reset();
4443
}
4544

4645
// Fast primitive setters

0 commit comments

Comments
 (0)