MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getJsValue

Method getJsValue

valdi/src/valdi/runtime/JavaScript/JSValueRefHolder.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 return getTaskScheduler().get() == jsContext.getTaskScheduler();
78}
79
80const ReferenceInfo& JSValueRefHolder::getReferenceInfo() const {
81 return _referenceInfo;
82}
83
84const StringBox& JSValueRefHolder::getANRAttribution() const {
85 return _anrAttribution;
86}
87
88void 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);

Callers 15

doOnCompleteMethod · 0.80
doCancelMethod · 0.80
getStackTraceMethod · 0.80
unwrapJSValueIfNeededFunction · 0.80
setJsContextHandlerMethod · 0.80
runtimeLoadModuleMethod · 0.80
notifyErrorHandlerFunction · 0.80
callModuleFunctionMethod · 0.80
registerTypeConverterMethod · 0.80

Calls 5

getStashedJSValueMethod · 0.80
getIdAndPathStringMethod · 0.80
JSValueClass · 0.70
valueMethod · 0.65
ErrorInterface · 0.50

Tested by

no test coverage detected