Skip to content

Commit

Permalink
Merge pull request #2 from keeyip/master
Browse files Browse the repository at this point in the history
Update handleFunction to match walkes signature changes
  • Loading branch information
Swatinem committed Feb 10, 2014
2 parents 57ddc9b + 87e4175 commit 9db642e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/esgraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ process.stdin.on('end', function () {

function findFunctions(ast) {
var functions = [];
function handleFunction(recurse) {
functions.push(this);
recurse(this.body);
function handleFunction(node, recurse, stop) {
functions.push(node);
recurse(node.body);
}
walkes(ast, {
FunctionDeclaration: handleFunction,
Expand Down

0 comments on commit 9db642e

Please sign in to comment.