Fix yield's 'input precedence' (352269, r=mrbkap).

git-svn-id: svn://10.0.0.236/trunk@209837 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org 2006-09-12 05:16:26 +00:00
parent 04fa25f61e
commit 2accee6801

View File

@ -1790,6 +1790,7 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb)
#if JS_HAS_GENERATORS
case JSOP_YIELD:
op = JSOP_SETNAME; /* turn off most parens */
rval = POP_STR();
todo = (*rval != '\0')
? Sprint(&ss->sprinter,