Closed mjz19910 closed 2 years ago
If the the BlockStatement is empty after filtering out the empty statements, don't check for a VariableDeclaration at index 0
This shows up in the error log
Caught an error while attempting to run AST visitor! node = {[snip]} err = TypeError: Cannot read properties of undefined (reading 'type')
thank you for the PR!
If the the BlockStatement is empty after filtering out the empty statements, don't check for a VariableDeclaration at index 0
This shows up in the error log