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);