Update astWalker.js

pull/5370/head
Aniket 4 years ago
parent 5be55b3f24
commit 5fae4d6d68
  1. 2
      libs/remix-debug/src/source/astWalker.js

@ -21,7 +21,7 @@ AstWalker.prototype.walk = function (ast, callback) {
if (!('*' in callback)) {
callback['*'] = function () { return true }
}
if(ast){
if(ast) {
const nodes = ast.nodes || (ast.body && ast.body.statements) || ast.declarations || []
if(ast.body && ast.initializationExpression) // 'for' loop handling
nodes.push(ast.initializationExpression)

Loading…
Cancel
Save