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

Function onJsCallError

valdi/src/valdi/quickjs/QuickJSUtils.cpp:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace ValdiQuickJS {
21
22static JSValue onJsCallError(JSContext* context, Valdi::JSExceptionTracker& exceptionTracker) {
23 auto exception = exceptionTracker.getExceptionAndClear();
24 return JS_Throw(context, JS_DupValue(context, fromValdiJSValue(exception.get())));
25}
26
27JSValue jsCall(
28 JSContext* context, JSValueConst funcObject, JSValueConst thisValue, int argc, JSValueConst* argv, int /*flags*/) {

Callers 1

jsCallFunction · 0.70

Calls 4

JS_DupValueFunction · 0.85
getExceptionAndClearMethod · 0.80
fromValdiJSValueFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected