зеркало из https://github.com/mozilla/gecko-dev.git
Push fix for 543565 for alpha.
This commit is contained in:
Родитель
c310b71326
Коммит
7220b77481
|
@ -5583,8 +5583,14 @@ ReconstructPCStack(JSContext *cx, JSScript *script, jsbytecode *target,
|
|||
}
|
||||
}
|
||||
|
||||
if (sn && SN_TYPE(sn) == SRC_HIDDEN)
|
||||
/*
|
||||
* Ignore early-exit code, which is SRC_HIDDEN, but do not ignore the
|
||||
* hidden POP that sometimes appears after an UNBRAND. See bug 543565.
|
||||
*/
|
||||
if (sn && SN_TYPE(sn) == SRC_HIDDEN &&
|
||||
(op != JSOP_POP || js_GetOpcode(cx, script, pc - 1) != JSOP_UNBRAND)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (SimulateOp(cx, script, op, cs, pc, pcstack, pcdepth) < 0)
|
||||
return -1;
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
function C() {
|
||||
var k = 3;
|
||||
this.x = function () { return k; };
|
||||
for (var i = 0; i < 9; i++)
|
||||
;
|
||||
}
|
||||
new C;
|
Загрузка…
Ссылка в новой задаче