Index: test/Prefs.cpp |
diff --git a/test/Prefs.cpp b/test/Prefs.cpp |
index ce217979fe96b6e9692df5682bfc8e6140493e7c..9d0a43c0ca07e83bf64671ac47ecdc3dbbd523d3 100644 |
--- a/test/Prefs.cpp |
+++ b/test/Prefs.cpp |
@@ -74,6 +74,7 @@ namespace |
{ |
fileSystem = new TestFileSystem(); |
fileSystemPtr.reset(fileSystem); |
+ jsEngine = CreateJsEngine(); |
Reset(); |
} |
@@ -81,7 +82,6 @@ namespace |
void Reset(const AdblockPlus::FilterEngine::Prefs& preconfiguredPrefs = |
AdblockPlus::FilterEngine::Prefs()) |
{ |
- jsEngine = CreateJsEngine(); |
jsEngine->SetLogSystem(AdblockPlus::LogSystemPtr(new LazyLogSystem)); |
jsEngine->SetFileSystem(fileSystemPtr); |
jsEngine->SetWebRequest(AdblockPlus::WebRequestPtr(new LazyWebRequest)); |