зеркало из https://github.com/mozilla/gecko-dev.git
bug 580128 - Fix js_PrintObjectSlotName. r=mrbkap
This commit is contained in:
Родитель
048f311321
Коммит
f5a023dff1
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче