Index: src/JsEngine.cpp |
=================================================================== |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -55,9 +55,10 @@ |
const v8::Locker locker(result->isolate); |
const v8::HandleScope handleScope; |
- result->context.reset(result->isolate, v8::Context::New(result->isolate)); |
+ result->context.reset(new v8::Persistent<v8::Context>(result->isolate, |
+ v8::Context::New(result->isolate))); |
v8::Local<v8::Object> globalContext = v8::Local<v8::Context>::New( |
- result->isolate, result->context)->Global(); |
+ result->isolate, *result->context)->Global(); |
AdblockPlus::GlobalJsObject::Setup(result, appInfo, |
JsValuePtr(new JsValue(result, globalContext))); |
return result; |