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

Method toRetainedResult

valdi/src/valdi/runtime/JavaScript/JavaScriptTypes.cpp:93–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93Result<JSValueRef> JSExceptionTracker::toRetainedResult(JSValueRef value) {
94 if (!*this) {
95 return extractError();
96 }
97 return _jsContext.ensureRetainedValue(std::move(value));
98}
99
100void JSExceptionTracker::storeException(const JSValue& exception) {
101 storeException(JSValueRef::makeRetained(_jsContext, exception));

Callers 2

onModuleLoadedMethod · 0.80
symbolicateErrorMethod · 0.80

Calls 1

ensureRetainedValueMethod · 0.80

Tested by

no test coverage detected