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

Function getHermes

valdi/src/valdi/jsbridge/JavaScriptBridge.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static Valdi::IJavaScriptBridge* getHermes() {
56#if VALDI_HAS_HERMES
57 static auto* kBridge = new Valdi::Hermes::HermesJavaScriptContextFactory();
58 return kBridge;
59#else
60 SC_ABORT("Requested Hermes VM, which is not available on this build type");
61 return nullptr;
62#endif
63}
64
65static Valdi::IJavaScriptBridge* getAuto() {
66#if VALDI_JS_ENGINE_DEFAULT_HERMES && VALDI_HAS_HERMES

Callers 2

getAutoFunction · 0.85
getMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected