Index: test/JsValue.cpp |
=================================================================== |
--- a/test/JsValue.cpp |
+++ b/test/JsValue.cpp |
@@ -194,17 +194,17 @@ TEST_F(JsValueTest, FunctionValue) |
ASSERT_TRUE(value->IsObject()); |
ASSERT_FALSE(value->IsArray()); |
ASSERT_TRUE(value->IsFunction()); |
ASSERT_TRUE(value->AsBool()); |
ASSERT_ANY_THROW(value->AsList()); |
ASSERT_EQ(2, value->GetProperty("length")->AsInt()); |
AdblockPlus::JsValuePtr thisPtr = jsEngine->Evaluate("({x:2})"); |
- AdblockPlus::JsValueList params; |
+ AdblockPlus::JsConstValueList params; |
params.push_back(jsEngine->NewValue(5)); |
params.push_back(jsEngine->NewValue("xyz")); |
ASSERT_EQ("2/5/xyz", value->Call(params, thisPtr)->AsString()); |
} |
TEST_F(JsValueTest, JsValueCallSingleArg) |
{ |
auto func = jsEngine->Evaluate("(function(arg) {return arg * 2;})"); |