| Index: src/JsValue.cpp |
| =================================================================== |
| --- a/src/JsValue.cpp |
| +++ b/src/JsValue.cpp |
| @@ -168,16 +168,21 @@ |
| obj->Set(property, val); |
| } |
| v8::Local<v8::Value> AdblockPlus::JsValue::UnwrapValue() const |
| { |
| return v8::Local<v8::Value>::New(jsEngine->GetIsolate(), *value); |
| } |
| +JsValue AdblockPlus::JsValue::Clone() const |
| +{ |
| + return JsValue(jsEngine, UnwrapValue()); |
| +} |
| + |
| void AdblockPlus::JsValue::SetProperty(const std::string& name, const std::string& val) |
| { |
| const JsContext context(jsEngine); |
| SetProperty(name, Utils::ToV8String(jsEngine->GetIsolate(), val)); |
| } |
| void AdblockPlus::JsValue::SetProperty(const std::string& name, int64_t val) |
| { |