| 508 | template <class T> |
| 509 | template <typename P> |
| 510 | V8_INLINE void PersistentBase<T>::SetWeak( |
| 511 | P* parameter, typename WeakCallbackInfo<P>::Callback callback, |
| 512 | WeakCallbackType type) { |
| 513 | using Callback = WeakCallbackInfo<void>::Callback; |
| 514 | #if (__GNUC__ >= 8) && !defined(__clang__) |
| 515 | #pragma GCC diagnostic push |
| 516 | #pragma GCC diagnostic ignored "-Wcast-function-type" |
| 517 | #endif |
| 518 | api_internal::MakeWeak(reinterpret_cast<internal::Address*>(this->val_), |
| 519 | parameter, reinterpret_cast<Callback>(callback), type); |
| 520 | #if (__GNUC__ >= 8) && !defined(__clang__) |
| 521 | #pragma GCC diagnostic pop |
| 522 | #endif |
| 523 | } |
| 524 | |
| 525 | template <class T> |
| 526 | void PersistentBase<T>::SetWeak() { |
no outgoing calls
no test coverage detected