Index: test/JsValue.cpp |
=================================================================== |
--- a/test/JsValue.cpp |
+++ b/test/JsValue.cpp |
@@ -151,17 +151,17 @@ |
ASSERT_FALSE(value->IsFunction()); |
ASSERT_EQ("foo", value->AsString()); |
ASSERT_EQ(123, value->AsInt()); |
ASSERT_TRUE(value->AsBool()); |
ASSERT_ANY_THROW(value->AsList()); |
ASSERT_EQ(2, value->GetProperty("x")->AsInt()); |
value->SetProperty("x", 12); |
ASSERT_EQ(12, value->GetProperty("x")->AsInt()); |
- value->SetProperty("x", jsEngine->NewValue(15)); |
+ value->SetProperty("x", *jsEngine->NewValue(15)); |
ASSERT_EQ(15, value->GetProperty("x")->AsInt()); |
ASSERT_EQ("Foo", value->GetClass()); |
ASSERT_EQ(3u, value->GetOwnPropertyNames().size()); |
ASSERT_ANY_THROW(value->Call()); |
} |
TEST_F(JsValueTest, ArrayValue) |
{ |