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

Fails to transpile if function assigned to computed property #2

Open
miklosme opened this issue Sep 17, 2017 · 1 comment
Open

Fails to transpile if function assigned to computed property #2

miklosme opened this issue Sep 17, 2017 · 1 comment

Comments

@miklosme
Copy link

Bug

  • babel-plugin-console version: 0.2.0
  • node version: v6.9.4
  • npm (or yarn) version: yarn v0.27.5
{
    [ActionTypes.FOO_BAR](payload) {
        // ...
        console.scope('debug')
    },
}

Put console.scope inside a function, which is assigned to a computed property.

Result: transpile fails, says Cannot read property 'name' of undefined.

@mattphillips
Copy link
Owner

Thanks @miklosme for the bug report 👍

I'm away from a keyboard for rest of the week so I'll take a look when I'm back

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