Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 5f5e08d190f4be227c2e46a04557d4661391534d..50480b81ae19f350cb3adba7478997f1d2448450 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -524,6 +524,13 @@ template <class T> class PersistentBase { |
return !operator==(that); |
} |
+ /** |
+ * Install a finalization callback on this object. |
+ * NOTE: There is no guarantee as to *when* or even *if* the callback is |
+ * invoked. The invocation is performed solely on a best effort basis. |
+ * As always, GC-based finalization should *not* be relied upon for any |
+ * critical form of resource management! |
+ */ |
template<typename P> |
V8_INLINE void SetWeak( |
P* parameter, |