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