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