Skip to content

Commit a8040e7

Browse files
committed
Expose Global::ClearWeak
1 parent b35f14d commit a8040e7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/binding.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,10 @@ void v8__Global__SetWeak(v8::Global<v8::Data>* self) {
16151615
self->SetWeak();
16161616
}
16171617

1618+
void v8__Global__ClearWeak(v8::Global<v8::Data>* self) {
1619+
self->ClearWeak();
1620+
}
1621+
16181622
void v8__Global__SetWeakFinalizer(
16191623
v8::Global<v8::Data>* self,
16201624
void* finalizer_ctx,

src/binding.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,8 @@ void v8__Global__New(
890890
Global* out);
891891
void v8__Global__Reset(
892892
Global* self);
893+
void v8__Global__ClearWeak(
894+
Global* self);
893895
void v8__Global__SetWeak(
894896
Global* self);
895897
void v8__Global__SetWeakFinalizer(

0 commit comments

Comments
 (0)