mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 770713 - Fix PC adjustment in JSOP_RETSUB (r=bhackett)
This commit is contained in:
parent
b3e1af2078
commit
b257c7ff2f
@ -3223,8 +3223,9 @@ BEGIN_CASE(JSOP_RETSUB)
|
||||
goto error;
|
||||
}
|
||||
JS_ASSERT(rval.isInt32());
|
||||
len = rval.toInt32();
|
||||
regs.pc = script->code;
|
||||
|
||||
/* Increment the PC by this much. */
|
||||
len = rval.toInt32() - int32_t(regs.pc - script->code);
|
||||
END_VARLEN_CASE
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user