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

Method checkCallAndGetValue

valdi/src/valdi/quickjs/QuickJSJavaScriptContext.cpp:246–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 auto objectFinalizerKey = callObjectAsFunction(symbolValue.get(), callContext);
245
246 if (!exceptionTracker) {
247 return;
248 }
249
250 _objectFinalizerAtomKey = JS_ValueToAtom(_context, fromValdiJSValue(objectFinalizerKey.get()));
251 if (_objectFinalizerAtomKey == JS_ATOM_NULL) {
252 setExceptionToTracker(exceptionTracker);
253 return;
254 }
255}
256
257void QuickJSJavaScriptContext::setExceptionToTracker(Valdi::JSExceptionTracker& exceptionTracker) {

Callers

nothing calls this directly

Calls 1

JS_IsExceptionFunction · 0.85

Tested by

no test coverage detected