Index: src/FilterEngine.cpp |
=================================================================== |
--- a/src/FilterEngine.cpp |
+++ b/src/FilterEngine.cpp |
@@ -189,17 +189,17 @@ |
} |
sync->Set(); |
onCreated(filterEngine); |
jsEngine->RemoveEventCallback("_init"); |
}); |
// Lock the JS engine while we are loading scripts, no timeouts should fire |
// until we are done. |
- const JsContext context(jsEngine); |
+ const JsContext context(*jsEngine); |
// Set the preconfigured prefs |
auto preconfiguredPrefsObject = jsEngine->NewObject(); |
for (FilterEngine::Prefs::const_iterator it = params.preconfiguredPrefs.begin(); |
it != params.preconfiguredPrefs.end(); it++) |
{ |
preconfiguredPrefsObject.SetProperty(it->first, it->second); |
} |