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

Method Copy

nan_persistent_12_inl.h:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46 template<typename S, typename M2>
47 inline void Copy(const Persistent<S, M2> &that) {
48 TYPE_CHECK(T, S);
49
50 this->Reset();
51
52 if (!that.IsEmpty()) {
53 this->Reset(that);
54 M::Copy(that, this);
55 }
56 }
57};
58
59#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \

Callers

nothing calls this directly

Calls 2

ResetMethod · 0.95
IsEmptyMethod · 0.45

Tested by

no test coverage detected