mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 967039 - Fix a bogus assert in DebugLeaveBlock. r=wingo
This commit is contained in:
parent
a212bb3bb1
commit
1ed07a7179
6
js/src/jit-test/tests/debug/bug967039.js
Normal file
6
js/src/jit-test/tests/debug/bug967039.js
Normal file
@ -0,0 +1,6 @@
|
||||
var g1 = newGlobal();
|
||||
var dbg = Debugger(g1);
|
||||
g1.dbg = dbg;
|
||||
g1.eval("function foo() { dbg.removeDebuggee(this); }");
|
||||
g1.eval("function f() { try { throw 3; } catch(e) { foo(); } }\n");
|
||||
g1.f();
|
@ -924,7 +924,7 @@ PopBlockScope(JSContext *cx, BaselineFrame *frame)
|
||||
bool
|
||||
DebugLeaveBlock(JSContext *cx, BaselineFrame *frame, jsbytecode *pc)
|
||||
{
|
||||
JS_ASSERT(cx->compartment()->debugMode());
|
||||
JS_ASSERT(frame->script()->baselineScript()->debugMode());
|
||||
|
||||
DebugScopes::onPopBlock(cx, frame, pc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user