Bug 380197: fixing regression from bug 380197. r=brendan

This commit is contained in:
igor@mir2.org 2007-05-09 14:40:36 -07:00
parent 116c18b96c
commit 8d62745af4

View File

@ -1719,6 +1719,12 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb)
if (nb < 0 && -(nb + 1) == (intN)ss->top - cs->nuses + cs->ndefs)
return pc;
/*
* Save source literal associated with JS now before the following
* rewrite changes op. See bug 380197.
*/
token = CodeToken[op];
if (pc + oplen == jp->dvgfence) {
JSStackFrame *fp;
uint32 format, mode, type;
@ -1818,7 +1824,6 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb)
jp->dvgfence = NULL;
}
token = CodeToken[op];
if (token) {
switch (cs->nuses) {
case 2: