зеркало из https://github.com/mozilla/pjs.git
(Not part of Communicator build.)
This comment is for checkin of version 1.8: mistakenly gave wrong comment for that version. Fix 123724 hippo: problems declaring var in an eval statement The problem was that Variable() in jsparse.c used the scope from calling js_FindVariableScope to determine whether or not to convert the operator to GETVAR, but LookupArgOrVar did not. This caused a mismatched set and get in the code generated from the eval script due to the presence of the var in the function frame.
This commit is contained in:
Родитель
2871b10428
Коммит
bd8f152eb1
|
@ -1612,7 +1612,8 @@ Expr(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc)
|
|||
return pn;
|
||||
}
|
||||
|
||||
/* ZZZbe don't create functions till codegen? or at least don't bind fn name */
|
||||
/* ZZZbe don't create functions till codegen? or at least don't bind
|
||||
* fn name */
|
||||
static JSBool
|
||||
LookupArgOrVar(JSContext *cx, JSAtom *atom, JSTreeContext *tc,
|
||||
JSOp *opp, jsint *slotp)
|
||||
|
|
Загрузка…
Ссылка в новой задаче