Index: test/JsEngine.cpp |
=================================================================== |
--- a/test/JsEngine.cpp |
+++ b/test/JsEngine.cpp |
@@ -120,9 +120,13 @@ TEST(JsEngineTest, ValueCreation) |
value = jsEngine.NewValue(12); |
ASSERT_TRUE(value->IsNumber()); |
ASSERT_EQ(12, value->AsInt()); |
value = jsEngine.NewValue(true); |
ASSERT_TRUE(value->IsBool()); |
ASSERT_TRUE(value->AsBool()); |
+ |
+ value = jsEngine.NewObject(); |
+ ASSERT_TRUE(value->IsObject()); |
+ ASSERT_EQ(0u, value->GetOwnPropertyNames().size()); |
} |