mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1122581 - Fix FormatFrame to not assert on Ion frames in some cases. r=shu
This commit is contained in:
parent
1cd5cc8dd9
commit
20da2fbc56
10
js/src/jit-test/tests/basic/bug1122581.js
Normal file
10
js/src/jit-test/tests/basic/bug1122581.js
Normal file
@ -0,0 +1,10 @@
|
||||
function f(x, y) {
|
||||
for (var i=0; i<50; i++) {
|
||||
if (i % 10 === 0) {
|
||||
var stack = getBacktrace({args: true, locals: true, thisprops: true});
|
||||
assertEq(stack.includes("f(x = "), true);
|
||||
foo = arguments;
|
||||
}
|
||||
}
|
||||
}
|
||||
f(1, 2);
|
@ -759,13 +759,13 @@ FormatFrame(JSContext* cx, const ScriptFrameIter& iter, char* buf, int num,
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else if (script->argsObjAliasesFormals() && iter.hasArgsObj()) {
|
||||
arg = iter.argsObj().arg(i);
|
||||
} else {
|
||||
if (iter.hasUsableAbstractFramePtr())
|
||||
arg = iter.unaliasedActual(i, DONT_CHECK_ALIASING);
|
||||
} else if (iter.hasUsableAbstractFramePtr()) {
|
||||
if (script->argsObjAliasesFormals() && iter.hasArgsObj())
|
||||
arg = iter.argsObj().arg(i);
|
||||
else
|
||||
arg = MagicValue(JS_OPTIMIZED_OUT);
|
||||
arg = iter.unaliasedActual(i, DONT_CHECK_ALIASING);
|
||||
} else {
|
||||
arg = MagicValue(JS_OPTIMIZED_OUT);
|
||||
}
|
||||
|
||||
JSAutoByteString valueBytes;
|
||||
|
Loading…
Reference in New Issue
Block a user