Update traceManager.ts

pull/5603/head
Ragnar 3 weeks ago committed by yann300
parent 23b1ddf54d
commit cfca9b93a8
  1. 5
      libs/remix-debug/src/trace/traceManager.ts

@ -148,10 +148,11 @@ export class TraceManager {
throw new TraceError(`Invalid step index: ${check.message}`, stepIndex)
}
const call = util.findCall(stepIndex, this.traceCache.callsTree.call)
if (call === null) {
if (call) {
return call.callStack
} else {
throw new TraceError('No callstack found for the given step index', stepIndex)
}
return call.callStack
}
getStackAt (stepIndex) {

Loading…
Cancel
Save