From 70f67d6ec5c572a6cfd8ab67595388d48560d61d Mon Sep 17 00:00:00 2001 From: "bak@chromium.org" Date: Thu, 2 Jul 2009 08:07:56 +0000 Subject: [PATCH] Reverted change to ASSERT is void Dictionary::SetEntry. Review URL: http://codereview.chromium.org/150212 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2332 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects-inl.h b/src/objects-inl.h index c0f3174d58..9d048f6ae3 100644 --- a/src/objects-inl.h +++ b/src/objects-inl.h @@ -2642,7 +2642,7 @@ void Dictionary::SetEntry(int entry, Object* key, Object* value, PropertyDetails details) { - ASSERT(!Shape::kIsEnumerable || details.index() > 0); + ASSERT(!key->IsString() || details.index() > 0); int index = HashTable::EntryToIndex(entry); WriteBarrierMode mode = FixedArray::GetWriteBarrierMode(); FixedArray::set(index, key, mode);