Fix an incorrect comment (r=me).

This commit is contained in:
Andreas Gal 2010-04-11 20:03:04 -07:00
Родитель fd1e728799
Коммит 75c8504688
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -418,9 +418,8 @@ js_ValueToIterator(JSContext *cx, uintN flags, jsval *vp)
}
} else {
/*
* These objects don't escape either, but we construct a
* StopIteration exception based on the parent of the iterator
* object, so we need the correct parent here.
* These iterator objects can escape, so we have to construct
* them with the proper proto and parent.
*/
if (!(iterobj = NewObject(cx, &js_IteratorClass, NULL, NULL)))
return false;