Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/FilterEngine.cpp

Issue 29418664: Issue 5162 - JsContext() takes a JsEngine& (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Created April 20, 2017, 7:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/FileSystemJsObject.cpp ('k') | src/JsContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/FileSystemJsObject.cpp ('k') | src/JsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld