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

Computed Object Properties cause invalid output of shorthand functions #101

Closed
ForsakenHarmony opened this issue Jan 24, 2018 · 1 comment

Comments

@ForsakenHarmony
Copy link
Contributor

ForsakenHarmony commented Jan 24, 2018

const test = {
  ["test"]: "test",
  test (test) {
    return test;
  }
};

gets transpiled as

const test = {};
test["test"] = "test";
test.test: function test = function (test) {
  return test;
};
@adrianheine
Copy link
Member

adrianheine commented Jan 26, 2018

Is this fixed by #91? Did you try current master? Edit: it's not.

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