e4x adds spurious quotes when decompiling an XMLPI object initializer. r=brendan

This commit is contained in:
sayrer%gmail.com 2006-09-10 04:45:39 +00:00
parent abd090c8e6
commit 053281a952

View File

@ -6205,7 +6205,7 @@ js_EmitTree(JSContext *cx, JSCodeGenerator *cg, JSParseNode *pn)
ale = js_IndexAtom(cx, pn->pn_atom2, &cg->atomList); ale = js_IndexAtom(cx, pn->pn_atom2, &cg->atomList);
if (!ale) if (!ale)
return JS_FALSE; return JS_FALSE;
if (!EmitAtomIndexOp(cx, JSOP_STRING, ALE_INDEX(ale), cg)) if (!EmitAtomIndexOp(cx, JSOP_QNAMEPART, ALE_INDEX(ale), cg))
return JS_FALSE; return JS_FALSE;
if (!EmitAtomOp(cx, pn, JSOP_XMLPI, cg)) if (!EmitAtomOp(cx, pn, JSOP_XMLPI, cg))
return JS_FALSE; return JS_FALSE;