Commit 21b5083b authored by yann300's avatar yann300

fix internal call tree

parent 61b50aa7
......@@ -136,10 +136,7 @@ async function buildTree (tree, step, scopeId) {
if (traceHelper.isCallInstruction(tree.traceManager.trace[step]) ||
sourceLocation.jump === 'i') {
try {
if (sourceLocation.jump === 'i') {
step++
}
var externalCallResult = await buildTree(tree, step, scopeId === '' ? subScope.toString() : scopeId + '.' + subScope)
var externalCallResult = await buildTree(tree, step + 1, scopeId === '' ? subScope.toString() : scopeId + '.' + subScope)
if (externalCallResult.error) {
return { outStep: step, error: 'InternalCallTree - ' + externalCallResult.error }
} else {
......
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