Index: test/cctest/test-api.cc |
=================================================================== |
--- test/cctest/test-api.cc (revision 1686) |
+++ test/cctest/test-api.cc (working copy) |
@@ -1293,6 +1293,9 @@ |
i::Heap::CollectAllGarbage(); |
+ // Make sure delete of a non-existent hidden value works |
+ CHECK(obj->DeleteHiddenValue(key)); |
+ |
CHECK(obj->SetHiddenValue(key, v8::Integer::New(1503))); |
CHECK_EQ(1503, obj->GetHiddenValue(key)->Int32Value()); |
CHECK(obj->SetHiddenValue(key, v8::Integer::New(2002))); |