Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arrow function not recognized when it's an object's property value #74

Open
hanyu-natsu opened this issue Feb 12, 2018 · 1 comment
Open

Comments

@hanyu-natsu
Copy link

hanyu-natsu commented Feb 12, 2018

Arrow functions are not recognized when declared as object's property value:

const Controller = {

  doSomething: async (param1, param2) => {
    // method
  }

}

This results as:

const Controller = {

  /**
   *   
   */
  doSomething: async (param1, param2) => {
    // method
  }

}

It is expected to be treated as normal function declaration.

@tgandrews
Copy link
Owner

Thanks I will take a look.

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

No branches or pull requests

2 participants