Merge pull request #9 from cgewecke/handle-null-return-argument

Check for null argument in returnStatement parsing
uport
area 8 years ago committed by GitHub
commit eecbcc3e2f
  1. 4
      instrumentSolidity.js

@ -203,7 +203,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