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

Function getV8

valdi/src/valdi/jsbridge/JavaScriptBridge.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static Valdi::IJavaScriptBridge* getV8() {
46#if VALDI_HAS_V8
47 static auto* kBridge = new Valdi::V8::V8JavaScriptContextFactory();
48 return kBridge;
49#else
50 SC_ABORT("Requested V8 VM, which is not available on this build type");
51 return nullptr;
52#endif
53}
54
55static Valdi::IJavaScriptBridge* getHermes() {
56#if VALDI_HAS_HERMES

Callers 1

getMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected