Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index c0bec79b01f1123d7926fe14a7fb0dec8dbf5810..67ca95dac228d6a0d7c177ce4375e19802dadfd3 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -652,23 +652,17 @@ template <class T> class Persistent // NOLINT |
P* parameters, |
typename WeakReferenceCallbacks<T, P>::Revivable callback)); |
- // TODO(dcarney): deprecate |
template<typename S, typename P> |
- V8_INLINE(void MakeWeak( |
+ V8_DEPRECATED(void MakeWeak( |
Isolate* isolate, |
P* parameters, |
- typename WeakReferenceCallbacks<S, P>::Revivable callback)) { |
- MakeWeak<S, P>(parameters, callback); |
- } |
+ typename WeakReferenceCallbacks<S, P>::Revivable callback)); |
- // TODO(dcarney): deprecate |
template<typename P> |
- V8_INLINE(void MakeWeak( |
+ V8_DEPRECATED(void MakeWeak( |
Isolate* isolate, |
P* parameters, |
- typename WeakReferenceCallbacks<T, P>::Revivable callback)) { |
- MakeWeak<P>(parameters, callback); |
- } |
+ typename WeakReferenceCallbacks<T, P>::Revivable callback)); |
V8_INLINE(void ClearWeak()); |
@@ -5598,6 +5592,26 @@ void Persistent<T>::MakeWeak( |
template <class T> |
+template <typename S, typename P> |
+void Persistent<T>::MakeWeak( |
+ Isolate* isolate, |
+ P* parameters, |
+ typename WeakReferenceCallbacks<S, P>::Revivable callback) { |
+ MakeWeak<S, P>(parameters, callback); |
+} |
+ |
+ |
+template <class T> |
+template<typename P> |
+void Persistent<T>::MakeWeak( |
+ Isolate* isolate, |
+ P* parameters, |
+ typename WeakReferenceCallbacks<T, P>::Revivable callback) { |
+ MakeWeak<P>(parameters, callback); |
+} |
+ |
+ |
+template <class T> |
void Persistent<T>::ClearWeak() { |
V8::ClearWeak(reinterpret_cast<internal::Object**>(this->val_)); |
} |