fix issue where a undefined definition would be added to the callstack

pull/5370/head
Iuri Matias 5 years ago
parent 18afeb293f
commit 9ca1b3bf26
  1. 5
      remix-debug/src/solidity-decoder/internalCallTree.js

@ -109,7 +109,10 @@ class InternalCallTree {
let functions = []
if (!scopeId) return functions
while (true) {
functions.push(this.functionDefinitionsByScope[scopeId])
let functionDefinition = this.functionDefinitionsByScope[scopeId]
if (functionDefinition !== undefined) {
functions.push(functionDefinition)
}
let parent = this.parentScope(scopeId)
if (!parent) break
else scopeId = parent

Loading…
Cancel
Save