diff --git a/src/util/internalCallTree.js b/src/util/internalCallTree.js index 03782482eb..1e8d074ffd 100644 --- a/src/util/internalCallTree.js +++ b/src/util/internalCallTree.js @@ -73,7 +73,7 @@ class InternalCallTree { var scopeId = util.findLowerBoundValue(vmtraceIndex, scopes) scopeId = this.scopeStarts[scopeId] var scope = this.scopes[scopeId] - while (scope.lastStep && scope.lastStep < vmtraceIndex) { + while (scope.lastStep && scope.lastStep < vmtraceIndex && scope.firstStep > 0) { var matched = scopeId.match(/(.\d|\d)$/) scopeId = scopeId.replace(matched[1], '') scope = this.scopes[scopeId]