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

Method Cast

test-app/runtime/src/main/cpp/include/v8-local-handle.h:236–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 */
235 template <class S>
236 V8_INLINE static Local<T> Cast(Local<S> that) {
237#ifdef V8_ENABLE_CHECKS
238 // If we're going to perform the type check then we have to check
239 // that the handle isn't empty before doing the checked cast.
240 if (that.IsEmpty()) return Local<T>();
241#endif
242 return Local<T>(T::Cast(*that));
243 }
244
245 /**
246 * Calling this is equivalent to Local<S>::Cast().

Callers

nothing calls this directly

Calls 2

CastFunction · 0.70
IsEmptyMethod · 0.45

Tested by

no test coverage detected