| Index: include/AdblockPlus/JsValue.h |
| diff --git a/include/AdblockPlus/JsValue.h b/include/AdblockPlus/JsValue.h |
| index 02ad87713d8686df82d8d2486030bd0b52a50fd4..092238e46163f9508532cbec89da470fb0568f37 100644 |
| --- a/include/AdblockPlus/JsValue.h |
| +++ b/include/AdblockPlus/JsValue.h |
| @@ -123,6 +123,14 @@ namespace AdblockPlus |
| JsValuePtr Call(const JsValueList& params = JsValueList(), |
| AdblockPlus::JsValuePtr thisPtr = AdblockPlus::JsValuePtr()) const; |
| + /** |
| + * Invokes the value as a function (see `IsFunction()`) with single |
| + * parameter. |
| + * @param arg A single required parameter. |
| + * @return Value returned by the function. |
| + */ |
| + JsValuePtr Call(const JsValue& arg) const; |
| + |
| v8::Local<v8::Value> UnwrapValue() const; |
| protected: |
| JsValue(JsValuePtr value); |