зеркало из https://github.com/mozilla/gecko-dev.git
Fix a bogus assertion and related bogus code that bit dmose (246441).
This commit is contained in:
Родитель
6c0ddda12c
Коммит
b7db19beeb
|
@ -1051,7 +1051,7 @@ XMLArrayCursorFinish(JSXMLArrayCursor *cursor)
|
||||||
next = cursor->next;
|
next = cursor->next;
|
||||||
if (next)
|
if (next)
|
||||||
next->prevp = cursor->prevp;
|
next->prevp = cursor->prevp;
|
||||||
*cursor->prevp = cursor->next;
|
*cursor->prevp = next;
|
||||||
cursor->array = NULL;
|
cursor->array = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4159,10 +4159,10 @@ PutProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
|
||||||
*/
|
*/
|
||||||
if (rxml) {
|
if (rxml) {
|
||||||
JS_ASSERT(JSXML_HAS_KIDS(rxml));
|
JS_ASSERT(JSXML_HAS_KIDS(rxml));
|
||||||
JS_ASSERT(rxml->xml_kids.length != 0);
|
n = rxml->xml_kids.length;
|
||||||
j = n = rxml->xml_kids.length - 1;
|
j = n - 1;
|
||||||
if (i != 0) {
|
if (n != 0 && i != 0) {
|
||||||
for (j = 0; j < n; j++) {
|
for (n = j, j = 0; j < n; j++) {
|
||||||
if (rxml->xml_kids.vector[j] ==
|
if (rxml->xml_kids.vector[j] ==
|
||||||
xml->xml_kids.vector[i-1]) {
|
xml->xml_kids.vector[i-1]) {
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче