Index: src/JsContext.cpp |
=================================================================== |
--- a/src/JsContext.cpp |
+++ b/src/JsContext.cpp |
@@ -17,8 +17,10 @@ |
#include "JsContext.h" |
-AdblockPlus::JsContext::JsContext(const JsEnginePtr jsEngine) |
- : locker(jsEngine->isolate), handleScope(), |
- contextScope(v8::Local<v8::Context>::New(jsEngine->isolate, jsEngine->context)) |
+AdblockPlus::JsContext::JsContext(JsEngine& jsEngine) |
+ : locker{jsEngine.isolate} |
+ , isolateScope{jsEngine.isolate} |
+ , handleScope{jsEngine.isolate} |
+ , contextScope{v8::Local<v8::Context>::New(jsEngine.isolate, jsEngine.context)} |
{ |
} |