Index: test/JsValue.cpp |
diff --git a/test/JsValue.cpp b/test/JsValue.cpp |
index f6edd20131082fe1ba8e3338c7e11823357c674e..44db3bae635f39a7d6916a90806d20bde58f19cd 100644 |
--- a/test/JsValue.cpp |
+++ b/test/JsValue.cpp |
@@ -202,13 +202,13 @@ TEST_F(JsValueTest, FunctionValue) |
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()); |
+ ASSERT_EQ("2/5/xyz", value->Call(params, thisPtr).AsString()); |
} |
TEST_F(JsValueTest, JsValueCallSingleArg) |
{ |
auto func = jsEngine->Evaluate("(function(arg) {return arg * 2;})"); |
- EXPECT_EQ(10, func->Call(jsEngine->NewValue(5))->AsInt()); |
+ EXPECT_EQ(10, func->Call(*jsEngine->NewValue(5)).AsInt()); |
} |
TEST_F(JsValueTest, ThrowingCoversion) |