| 258 | template <typename T> |
| 259 | template <typename S> |
| 260 | void ReturnValue<T>::Set(const Global<S>& handle) { |
| 261 | static_assert(std::is_base_of<T, S>::value, "type check"); |
| 262 | if (V8_UNLIKELY(handle.IsEmpty())) { |
| 263 | *value_ = GetDefaultValue(); |
| 264 | } else { |
| 265 | *value_ = *reinterpret_cast<internal::Address*>(*handle); |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | template <typename T> |
| 270 | template <typename S> |
nothing calls this directly
no test coverage detected