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

Function onJsCallError

valdi/src/valdi/jscore/JSCoreCustomClasses.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace ValdiJSCore {
18
19static JSValueRef onJsCallError(JSContextRef ctx,
20 Valdi::JSExceptionTracker& exceptionTracker,
21 JSValueRef* exceptionPtr) {
22 auto exception = exceptionTracker.getExceptionAndClear();
23 *exceptionPtr = fromValdiJSValue(exception.get()).valueRef;
24 return JSValueMakeUndefined(ctx);
25}
26
27JSValueRef callAsFunction(JSContextRef ctx,
28 JSObjectRef function,

Callers 1

callAsFunctionFunction · 0.70

Calls 3

getExceptionAndClearMethod · 0.80
fromValdiJSValueFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected