MCPcopy Create free account
hub / github.com/nodejs/nan / CopyablePersistentTraits

Class CopyablePersistentTraits

nan.h:213–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 10 || \
212 (V8_MAJOR_VERSION == 10 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 5))
213template<typename T> struct CopyablePersistentTraits {
214 typedef v8::Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
215 static const bool kResetInDestructor = true;
216 template <typename S, typename M>
217 static NAN_INLINE void Copy(const v8::Persistent<S, M> &source,
218 CopyablePersistent *dest) {
219 }
220};
221#else
222template<typename T>
223class CopyablePersistentTraits :

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected