| 43 | } |
| 44 | |
| 45 | static 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 | |
| 55 | static Valdi::IJavaScriptBridge* getHermes() { |
| 56 | #if VALDI_HAS_HERMES |