| 77 | return getTaskScheduler().get() == jsContext.getTaskScheduler(); |
| 78 | } |
| 79 | |
| 80 | const ReferenceInfo& JSValueRefHolder::getReferenceInfo() const { |
| 81 | return _referenceInfo; |
| 82 | } |
| 83 | |
| 84 | const StringBox& JSValueRefHolder::getANRAttribution() const { |
| 85 | return _anrAttribution; |
| 86 | } |
| 87 | |
| 88 | void JSValueRefHolder::throwReferenceError(JSExceptionTracker& exceptionTracker, const Error& error) const { |
| 89 | if (_stackTraceProvider != nullptr) { |
| 90 | auto stack = _stackTraceProvider->getStackTrace(); |
| 91 | std::string errorMessage = error.toString(); |
| 92 | exceptionTracker.onError(Error(StringCache::getGlobal().makeString(std::move(errorMessage)), stack, nullptr)); |
| 93 | } else { |
| 94 | exceptionTracker.onError(error); |
no test coverage detected