Bug 632206: remove unneeded rooting, r=lw

This commit is contained in:
David Mandelin 2011-02-07 17:49:18 -08:00
parent d7d452bef1
commit a19b006a53
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,6 @@
// don't crash
x = <x/>
for (a = 0; a < 9; a++) {
x.elements()
}

View File

@ -5657,7 +5657,6 @@ xml_elements(JSContext *cx, uintN argc, jsval *vp)
nameqn = ToXMLName(cx, name, &funid);
if (!nameqn)
return JS_FALSE;
vp[2] = OBJECT_TO_JSVAL(nameqn);
if (!JSID_IS_VOID(funid))
return xml_list_helper(cx, xml, vp) != NULL;