From 053281a9526790f632dd891505e4d49f30dfed76 Mon Sep 17 00:00:00 2001 From: "sayrer%gmail.com" Date: Sun, 10 Sep 2006 04:45:39 +0000 Subject: [PATCH] e4x adds spurious quotes when decompiling an XMLPI object initializer. r=brendan --- js/src/jsemit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsemit.c b/js/src/jsemit.c index d3b0597cc2f5..48e37845f7b3 100644 --- a/js/src/jsemit.c +++ b/js/src/jsemit.c @@ -6205,7 +6205,7 @@ js_EmitTree(JSContext *cx, JSCodeGenerator *cg, JSParseNode *pn) ale = js_IndexAtom(cx, pn->pn_atom2, &cg->atomList); if (!ale) return JS_FALSE; - if (!EmitAtomIndexOp(cx, JSOP_STRING, ALE_INDEX(ale), cg)) + if (!EmitAtomIndexOp(cx, JSOP_QNAMEPART, ALE_INDEX(ale), cg)) return JS_FALSE; if (!EmitAtomOp(cx, pn, JSOP_XMLPI, cg)) return JS_FALSE;