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

Function setException

third-party/jscore/include/JavaScriptCore/APIUtils.h:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55inline void setException(JSC::ExecState* exec, JSValueRef* returnedExceptionRef, JSC::JSValue exception)
56{
57 if (returnedExceptionRef)
58 *returnedExceptionRef = toRef(exec, exception);
59#if ENABLE(REMOTE_INSPECTOR)
60 VM& vm = exec->vm();
61 vm.vmEntryGlobalObject(exec)->inspectorController().reportAPIException(exec, JSC::Exception::create(vm, exception));
62#endif
63}
64
65#endif /* APIUtils_h */

Callers 2

~PromiseBaseMethod · 0.85
setExceptionMethod · 0.85

Calls 2

toRefFunction · 0.85
createFunction · 0.50

Tested by

no test coverage detected