| 33 | } |
| 34 | |
| 35 | static Valdi::IJavaScriptBridge* getJSCore() { |
| 36 | #if VALDI_HAS_JSCORE |
| 37 | static auto* kBridge = new ValdiJSCore::JavaScriptCoreContextFactory(); |
| 38 | return kBridge; |
| 39 | #else |
| 40 | SC_ABORT("Requested JSCore VM, which is not available on this build type"); |
| 41 | return nullptr; |
| 42 | #endif |
| 43 | } |
| 44 | |
| 45 | static Valdi::IJavaScriptBridge* getV8() { |
| 46 | #if VALDI_HAS_V8 |