mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1503071: Handle JS_UNINITIALIZED_LEXICAL in FormatValue r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D11500 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
824da429cb
commit
f81c230821
16
js/src/jit-test/tests/arguments/bug1503071.js
Normal file
16
js/src/jit-test/tests/arguments/bug1503071.js
Normal file
@ -0,0 +1,16 @@
|
||||
// |jit-test| exitstatus: 6
|
||||
var g = true
|
||||
|
||||
setInterruptCallback(function() {
|
||||
print(getBacktrace({args: true}));
|
||||
});
|
||||
|
||||
function foo(bt, x=3, y = eval("g")) {
|
||||
if (g) {
|
||||
g = false
|
||||
interruptIf(true);
|
||||
foo(false);
|
||||
}
|
||||
(function() { n = bt;});
|
||||
}
|
||||
foo(false);
|
@ -840,7 +840,9 @@ js::DumpScript(JSContext* cx, JSScript* scriptArg)
|
||||
static const char*
|
||||
FormatValue(JSContext* cx, HandleValue v, UniqueChars& bytes)
|
||||
{
|
||||
if (v.isMagic(JS_OPTIMIZED_OUT)) {
|
||||
if (v.isMagic()) {
|
||||
MOZ_ASSERT(v.whyMagic() == JS_OPTIMIZED_OUT ||
|
||||
v.whyMagic() == JS_UNINITIALIZED_LEXICAL);
|
||||
return "[unavailable]";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user