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

262}
263
264Valdi::JSValueRef QuickJSJavaScriptContext::getGlobalObject(Valdi::JSExceptionTracker& exceptionTracker) {
265 auto guard = _threadAccessChecker.guard();
266 return checkCallAndGetValue(exceptionTracker, JS_GetGlobalObject(_context));
267}
268
269bool QuickJSJavaScriptContext::supportsPreCompilation() const {
270 return true;

Callers

nothing calls this directly

Calls 1

guardMethod · 0.80

Tested by

no test coverage detected