MCPcopy Create free account
hub / github.com/NativeScript/android / Set

Method Set

test-app/runtime/src/main/cpp/include/v8-function-callback.h:260–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258template <typename T>
259template <typename S>
260void 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
269template <typename T>
270template <typename S>

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
GetIsolateFunction · 0.85
SetClass · 0.70
IsEmptyMethod · 0.45

Tested by

no test coverage detected