Index: src/JsValue.cpp |
diff --git a/src/JsValue.cpp b/src/JsValue.cpp |
index 04b9c84ec375eb794a5f90f2fed830a3c7ee5b48..336c77f7893b90f26563904cbcaa405b7b723722 100644 |
--- a/src/JsValue.cpp |
+++ b/src/JsValue.cpp |
@@ -25,7 +25,7 @@ |
AdblockPlus::JsValue::JsValue(AdblockPlus::JsEnginePtr jsEngine, |
v8::Handle<v8::Value> value) |
: jsEngine(jsEngine), |
- value(new v8::Persistent<v8::Value>(jsEngine->isolate, value)) |
+ value(new v8::UniquePersistent<v8::Value>(jsEngine->isolate, value)) |
{ |
} |
@@ -187,7 +187,7 @@ void AdblockPlus::JsValue::SetProperty(const std::string& name, const JsValuePtr |
void AdblockPlus::JsValue::SetProperty(const std::string& name, bool val) |
{ |
const JsContext context(jsEngine); |
- SetProperty(name, v8::Boolean::New(val)); |
+ SetProperty(name, v8::Boolean::New(jsEngine->isolate, val)); |
} |
std::string AdblockPlus::JsValue::GetClass() const |