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

Function getJSCore

valdi/src/valdi/jsbridge/JavaScriptBridge.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static Valdi::IJavaScriptBridge* getJSCore() {
36#if VALDI_HAS_JSCORE
37 static auto* kBridge = new ValdiJSCore::JavaScriptCoreContextFactory();
38 return kBridge;
39#else
40 SC_ABORT("Requested JSCore VM, which is not available on this build type");
41 return nullptr;
42#endif
43}
44
45static Valdi::IJavaScriptBridge* getV8() {
46#if VALDI_HAS_V8

Callers 2

getAutoFunction · 0.85
getMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected