Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 51040fe1a70f57d992f08d6107e8f0316de42955..c7c1618951bf6c790d392d13e6f8d3c7ca5583e4 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -228,6 +228,7 @@ typedef void (*NearDeathCallback)(Isolate* isolate, |
#define V8_USE_UNSAFE_HANDLES |
+#define V8_USE_OLD_STYLE_PERSISTENT_HANDLE_VISITORS |
/** |
* An object reference managed by the v8 garbage collector. |
@@ -4107,8 +4108,13 @@ class V8EXPORT ExternalResourceVisitor { // NOLINT |
class V8EXPORT PersistentHandleVisitor { // NOLINT |
public: |
virtual ~PersistentHandleVisitor() {} |
+#ifdef V8_USE_OLD_STYLE_PERSISTENT_HANDLE_VISITORS |
virtual void VisitPersistentHandle(Persistent<Value> value, |
uint16_t class_id) {} |
+#else |
+ virtual void VisitPersistentHandle(Persistent<Value>* value, |
+ uint16_t class_id) {} |
+#endif |
}; |