Check for null argument in returnStatement parsing

uport
cgewecke 8 years ago
parent f0c5f08f09
commit 82ac391803
  1. 4
      instrumentSolidity.js

@ -204,7 +204,9 @@ module.exports = function(contract, fileName, instrumentingActive){
parse["ReturnStatement"] = function(expression, instrument){
if (instrument){instrumentStatement(expression)}
parse[expression.argument.type](expression.argument, instrument);
if (expression.argument){
parse[expression.argument.type](expression.argument, instrument);
}
}
parse["NewExpression"] = function(expression, instrument){

Loading…
Cancel
Save