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

Method getGlobalObject

valdi/src/valdi/quickjs/QuickJSJavaScriptContext.cpp:264–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262Valdi::JSValueRef QuickJSJavaScriptContext::checkCallAndGetValue(Valdi::JSExceptionTracker& exceptionTracker,
263 const JSValue& value) {
264 if (JS_IsException(value) != 0) {
265 setExceptionToTracker(exceptionTracker);
266 return Valdi::JSValueRef();
267 }
268
269 return toRetainedJSValueRef(value);
270}

Callers

nothing calls this directly

Calls 1

guardMethod · 0.80

Tested by

no test coverage detected