bug 580128 - Fix js_PrintObjectSlotName. r=mrbkap

This commit is contained in:
Peter Van der Beken 2010-10-10 15:46:42 -07:00
Родитель 048f311321
Коммит f5a023dff1
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -6139,6 +6139,8 @@ js_PrintObjectSlotName(JSTracer *trc, char *buf, size_t bufsize)
shape = obj->lastProperty(); shape = obj->lastProperty();
while (shape->previous() && shape->slot != slot) while (shape->previous() && shape->slot != slot)
shape = shape->previous(); shape = shape->previous();
if (shape->slot != slot)
shape = NULL;
} else { } else {
shape = NULL; shape = NULL;
} }