Commit 74b2e297 authored by Iuri Matias's avatar Iuri Matias Committed by aniket-engg

refactor getCallStackAt

parent 459e045e
...@@ -112,9 +112,9 @@ TraceManager.prototype.buildCallPath = function (stepIndex, callback) { ...@@ -112,9 +112,9 @@ TraceManager.prototype.buildCallPath = function (stepIndex, callback) {
} }
TraceManager.prototype.getCallStackAt = function (stepIndex) { TraceManager.prototype.getCallStackAt = function (stepIndex) {
try { // this.checkRequestedStep(stepIndex)
this.checkRequestedStep(stepIndex) const check = this.checkRequestedStep(stepIndex)
} catch (check) { if (check) {
throw new Error(check) throw new Error(check)
} }
const call = util.findCall(stepIndex, this.traceCache.callsTree.call) const call = util.findCall(stepIndex, this.traceCache.callsTree.call)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment