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

Loading…
Cancel
Save