Bug 967039 - Fix a bogus assert in DebugLeaveBlock. r=wingo

This commit is contained in:
Jan de Mooij 2014-02-04 11:57:20 +01:00
parent a212bb3bb1
commit 1ed07a7179
2 changed files with 7 additions and 1 deletions

View 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();

View File

@ -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);