Index: test/cctest/test-declarative-accessors.cc |
diff --git a/test/cctest/test-declarative-accessors.cc b/test/cctest/test-declarative-accessors.cc |
index fb22ccdbabc2e9f17bd4563e71ca033162854bf9..af3ffc3e07e102fdeb5e432bdecc5d033c04caff 100644 |
--- a/test/cctest/test-declarative-accessors.cc |
+++ b/test/cctest/test-declarative-accessors.cc |
@@ -42,8 +42,7 @@ class HandleArray : public Malloced { |
void Reset() { |
for (unsigned i = 0; i < kArraySize; i++) { |
if (handles_[i].IsEmpty()) continue; |
- handles_[i].Dispose(); |
- handles_[i].Clear(); |
+ handles_[i].Reset(); |
} |
} |
v8::Persistent<v8::Value> handles_[kArraySize]; |