Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index f6e236114e33edca721fe3cb1a37fd216c5af0fb..d2a5322b9c05846576bdd05565243ee3bc06c3b1 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -220,6 +220,8 @@ class WeakReferenceCallbacks { |
} |
+#define V8_USE_UNSAFE_HANDLES |
+ |
/** |
* An object reference managed by the v8 garbage collector. |
* |
@@ -490,10 +492,10 @@ template <class T> class Persistent // NOLINT |
public: |
#ifndef V8_USE_UNSAFE_HANDLES |
V8_INLINE(Persistent()) : val_(0) { } |
- // TODO(dcarney): add this back before cutover. |
-// V8_INLINE(~Persistent()) { |
-// Dispose(); |
-// } |
+ V8_INLINE(~Persistent()) { |
+ // TODO(dcarney): add this back before cutover. |
+ // Dispose(); |
+ } |
V8_INLINE(bool IsEmpty() const) { return val_ == 0; } |
// TODO(dcarney): remove somehow before cutover |
// The handle should either be 0, or a pointer to a live cell. |