fix internal call tree

pull/7/head
yann300 8 years ago
parent 61b50aa747
commit 21b5083bc6
  1. 5
      src/util/internalCallTree.js

@ -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 {

Loading…
Cancel
Save