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

Method get

valdi/src/valdi/jsbridge/JavaScriptBridge.cpp:83–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool JavaScriptBridge::isAvailable(JavaScriptEngineType type) {
84 switch (type) {
85 case JavaScriptEngineType::Auto:
86 return true;
87 case JavaScriptEngineType::JSCore:
88#if VALDI_HAS_JSCORE
89 return true;
90#else
91 return false;
92#endif
93 case JavaScriptEngineType::QuickJS:
94#if VALDI_HAS_QUICKJS
95 return true;
96#else
97 return false;
98#endif
99 case JavaScriptEngineType::V8:
100#if VALDI_HAS_V8
101 return true;
102#else
103 return false;
104#endif
105 case JavaScriptEngineType::Hermes:
106#if VALDI_HAS_HERMES
107 return true;
108#else

Callers

nothing calls this directly

Calls 5

getAutoFunction · 0.85
getJSCoreFunction · 0.85
getQuickJSFunction · 0.85
getV8Function · 0.85
getHermesFunction · 0.85

Tested by

no test coverage detected