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. 2
      instrumentSolidity.js

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

Loading…
Cancel
Save