Bug 827238 - Fix an out-of-date comment in js/public/HashTable.h r=luke

This commit is contained in:
Justin Lebar 2013-01-08 11:04:19 +01:00
parent 84986a5b8d
commit e111de2b75

View File

@ -721,11 +721,9 @@ class HashTable : private AllocPolicy
// A Range whose lifetime delimits a mutating enumeration of a hash table.
// Since rehashing when elements were removed during enumeration would be
// bad, it is postponed until |endEnumeration()| is called. If
// |endEnumeration()| is not called before an Enum's constructor, it will
// be called automatically. Since |endEnumeration()| touches the hash
// table, the user must ensure that the hash table is still alive when this
// happens.
// bad, it is postponed until the Enum is destructed. Since the Enum's
// destructor touches the hash table, the user must ensure that the hash
// table is still alive when the destructor runs.
class Enum : public Range
{
friend class HashTable;