Index: src/JsValue.cpp |
=================================================================== |
--- a/src/JsValue.cpp |
+++ b/src/JsValue.cpp |
@@ -19,16 +19,22 @@ namespace |
AdblockPlus::JsValue::JsValue(AdblockPlus::JsEnginePtr jsEngine, |
v8::Handle<v8::Value> value) |
: jsEngine(jsEngine), |
value(v8::Persistent<v8::Value>::New(jsEngine->isolate, value)) |
{ |
} |
+AdblockPlus::JsValue::JsValue(AdblockPlus::JsValuePtr value) |
+ : jsEngine(value->jsEngine), |
+ value(v8::Persistent<v8::Value>::New(jsEngine->isolate, value->value)) |
+{ |
+} |
+ |
AdblockPlus::JsValue::~JsValue() |
{ |
value.Dispose(jsEngine->isolate); |
} |
bool AdblockPlus::JsValue::IsUndefined() const |
{ |
const JsEngine::Context context(jsEngine); |