Index: src/JsContext.cpp |
diff --git a/src/JsContext.cpp b/src/JsContext.cpp |
index 8d489afbfaa22d2108069bbbcdbe2af6dc05d33c..a364d8b7946898840b05ce0e0a2d81516c57ec21 100644 |
--- a/src/JsContext.cpp |
+++ b/src/JsContext.cpp |
@@ -17,8 +17,14 @@ |
#include "JsContext.h" |
-AdblockPlus::JsContext::JsContext(const JsEnginePtr jsEngine) |
- : locker(jsEngine->GetIsolate()), isolateScope(jsEngine->GetIsolate()), |
+AdblockPlus::JsLocker::JsLocker(const JsEnginePtr& jsEngine) |
+ : locker(jsEngine->GetIsolate()) |
+{ |
+} |
+ |
+AdblockPlus::JsContext::JsContext(const JsEnginePtr& jsEngine) |
+ : locker(jsEngine), |
+ isolateScope(jsEngine->GetIsolate()), |
handleScope(jsEngine->GetIsolate()), |
context(v8::Local<v8::Context>::New(jsEngine->GetIsolate(), *jsEngine->context)), |
contextScope(context) |