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

Function getQuickJS

valdi/src/valdi/jsbridge/JavaScriptBridge.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23static Valdi::IJavaScriptBridge* getAuto();
24
25static Valdi::IJavaScriptBridge* getQuickJS() {
26#if VALDI_HAS_QUICKJS
27 static auto* kBridge = new ValdiQuickJS::QuickJSJavaScriptContextFactory();
28 return kBridge;
29#else
30 SC_ABORT("Requested QuickJS VM, which is not available on this build type");
31 return nullptr;
32#endif
33}
34
35static Valdi::IJavaScriptBridge* getJSCore() {
36#if VALDI_HAS_JSCORE

Callers 2

getAutoFunction · 0.85
getMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected