Skip to content

Fix ecma visitor for function expressions with name.#31

Open
nene wants to merge 1 commit into
tenderlove:masterfrom
nene:ecma-visitor-fix
Open

Fix ecma visitor for function expressions with name.#31
nene wants to merge 1 commit into
tenderlove:masterfrom
nene:ecma-visitor-fix

Conversation

@nene
Copy link
Copy Markdown
Contributor

@nene nene commented Oct 8, 2013

To fix issue #27

Make the Getter and Setter visitors also handle the visiting of the
related FunctionExprNode, not rely on the visit_FunctionExprNode, which
can accordingly be changed to also include "function" before its name.

To DRY things up, move the common bit of all the Function-visiting
methods to #function_params_and_body helper method.

Also add a test case.

Make the Getter and Setter visitors also handle the visiting of the
related FunctionExprNode, not rely on the visit_FunctionExprNode, which
can accordingly be changed to also include "function" before its name.

To DRY things up, move the common bit of all the Function-visiting
methods to #function_params_and_body helper method.

Also add a test case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant