| 300 | } |
| 301 | |
| 302 | bool ObjectManager::CloneLink(const Local<Object>& src, |
| 303 | const Local<Object>& dest) { |
| 304 | auto jsInfo = GetJSInstanceInfo(src); |
| 305 | |
| 306 | auto success = jsInfo != nullptr; |
| 307 | |
| 308 | if (success) { |
| 309 | auto jsInfoIdx = static_cast<int>(MetadataNodeKeys::JsInfo); |
| 310 | auto jsInfo = src->GetInternalField(jsInfoIdx); |
| 311 | dest->SetInternalField(jsInfoIdx, jsInfo); |
| 312 | } |
| 313 | |
| 314 | return success; |
| 315 | } |
| 316 | |
| 317 | string ObjectManager::GetClassName(jobject javaObject) { |
| 318 | InitializeJNI(); |
no test coverage detected