|
|
|
@ -53,32 +53,28 @@ function StepManager (_parent, _traceManager) { |
|
|
|
|
if (self.buttonNavigator) { |
|
|
|
|
self.buttonNavigator.resetWarning('') |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
self.currentCall = callsPath[callsPath.length - 1] |
|
|
|
|
if (self.currentCall.reverted) { |
|
|
|
|
let revertedReason = self.currentCall.outofgas ? 'outofgas' : '' |
|
|
|
|
if (self.buttonNavigator) { |
|
|
|
|
self.revertionPoint = self.currentCall.return |
|
|
|
|
if (self.buttonNavigator) { |
|
|
|
|
self.buttonNavigator.resetWarning(revertedReason) |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
var k = callsPath.length - 2 |
|
|
|
|
while (k >= 0) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
for (var k = callsPath.length - 2; k >= 0; k--) { |
|
|
|
|
var parent = callsPath[k] |
|
|
|
|
if (parent.reverted) { |
|
|
|
|
let revertedReason = parent ? 'parenthasthrown' : '' |
|
|
|
|
if (self.buttonNavigator) { |
|
|
|
|
if (!parent.reverted) continue |
|
|
|
|
self.revertionPoint = parent.return |
|
|
|
|
self.buttonNavigator.resetWarning(revertedReason) |
|
|
|
|
} |
|
|
|
|
if (self.buttonNavigator) { |
|
|
|
|
self.buttonNavigator.resetWarning('parenthasthrown') |
|
|
|
|
} |
|
|
|
|
k-- |
|
|
|
|
} |
|
|
|
|
if (self.buttonNavigator) { |
|
|
|
|
self.buttonNavigator.resetWarning('') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
@ -134,10 +130,6 @@ StepManager.prototype.init = function () { |
|
|
|
|
this.changeState(0) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
StepManager.prototype.newTraceAvailable = function () { |
|
|
|
|
this.init() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
StepManager.prototype.jumpTo = function (step) { |
|
|
|
|
if (!this.traceManager.inRange(step)) return |
|
|
|
|
this.slider.setValue(step) |
|
|
|
|