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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user