Index: src/JsValue.cpp |
diff --git a/src/JsValue.cpp b/src/JsValue.cpp |
index df4b72e33be2dc2819994fcc7e5aa1e525022298..8b1edc645d15605dfedf4e1093e058856f11fa58 100644 |
--- a/src/JsValue.cpp |
+++ b/src/JsValue.cpp |
@@ -229,3 +229,11 @@ AdblockPlus::JsValuePtr AdblockPlus::JsValue::Call(const JsValueList& params, Js |
return JsValuePtr(new JsValue(jsEngine, result)); |
} |
+ |
+AdblockPlus::JsValuePtr AdblockPlus::JsValue::Call(const JsValue& arg) const |
+{ |
+ const JsContext context(jsEngine); |
+ JsValueList params; |
+ params.push_back(JsValuePtr(new JsValue(arg.jsEngine, arg.UnwrapValue()))); |
+ return Call(params); |
+} |