Index: src/JsContext.cpp |
=================================================================== |
--- a/src/JsContext.cpp |
+++ b/src/JsContext.cpp |
@@ -16,11 +16,8 @@ |
*/ |
#include "JsContext.h" |
+#include "JsEngineTransition.h" |
AdblockPlus::JsContext::JsContext(const JsEnginePtr jsEngine) |
- : locker(jsEngine->GetIsolate()), isolateScope(jsEngine->GetIsolate()), |
- handleScope(jsEngine->GetIsolate()), |
- context(v8::Local<v8::Context>::New(jsEngine->GetIsolate(), *jsEngine->context)), |
- contextScope(context) |
-{ |
-} |
+ : scope(ToInternal(jsEngine)) |
+{} |