Bug 1026041 - make _clearSteppingHooks in ThreadActor check if the frame is live. r=fitzgen

This commit is contained in:
James Long 2014-06-23 12:58:00 +02:00
parent b1fd5a67cb
commit d87fd67865

View File

@ -1075,10 +1075,12 @@ ThreadActor.prototype = {
* The frame we want to clear the stepping hooks from.
*/
_clearSteppingHooks: function (aFrame) {
while (aFrame) {
aFrame.onStep = undefined;
aFrame.onPop = undefined;
aFrame = aFrame.older;
if (aFrame && aFrame.live) {
while (aFrame) {
aFrame.onStep = undefined;
aFrame.onPop = undefined;
aFrame = aFrame.older;
}
}
},