Replace func expr with arrow.

This commit is contained in:
Jesse McCarthy 2016-01-11 11:55:30 -05:00
parent afd98ebd2a
commit 4c69f1cda5

View File

@ -242,7 +242,7 @@ export let visitor = {
let target = path.getEarliestCommonAncestorFrom(state.references).getStatementParent();
// don't perform the allocation inside a loop
target.findParent(function (path) {
target.findParent(path => {
if (path.isLoop()) {
target = path;
} else {