| 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 || \ |