зеркало из https://github.com/mozilla/pjs.git
add assertion.
This commit is contained in:
Родитель
8dbf2e234f
Коммит
f20f26ec57
|
@ -68,6 +68,10 @@ class NS_COM_GLUE nsTObserverArray_base {
|
|||
: mIterators(nsnull) {
|
||||
}
|
||||
|
||||
~nsTObserverArray_base() {
|
||||
NS_ASSERTION(mIterators == nsnull, "iterators outlasting array");
|
||||
}
|
||||
|
||||
/**
|
||||
* Adjusts iterators after an element has been inserted or removed
|
||||
* from the array.
|
||||
|
|
Загрузка…
Ссылка в новой задаче