Emit the correct bytecode when a let-declared variable is on the right side of a += or similar operator. bug 344139, r=brendan

git-svn-id: svn://10.0.0.236/trunk@201832 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mrbkap%gmail.com
2006-07-10 19:23:13 +00:00
parent a5d167b80e
commit 57fda7b85d

View File

@@ -4847,6 +4847,8 @@ js_EmitTree(JSContext *cx, JSCodeGenerator *cg, JSParseNode *pn)
? JSOP_GETGVAR
: (pn2->pn_op == JSOP_SETARG)
? JSOP_GETARG
: (pn2->pn_op == JSOP_SETLOCAL)
? JSOP_GETLOCAL
: JSOP_GETVAR,
atomIndex);
break;