| 23 | static Valdi::IJavaScriptBridge* getAuto(); |
| 24 | |
| 25 | static Valdi::IJavaScriptBridge* getQuickJS() { |
| 26 | #if VALDI_HAS_QUICKJS |
| 27 | static auto* kBridge = new ValdiQuickJS::QuickJSJavaScriptContextFactory(); |
| 28 | return kBridge; |
| 29 | #else |
| 30 | SC_ABORT("Requested QuickJS VM, which is not available on this build type"); |
| 31 | return nullptr; |
| 32 | #endif |
| 33 | } |
| 34 | |
| 35 | static Valdi::IJavaScriptBridge* getJSCore() { |
| 36 | #if VALDI_HAS_JSCORE |