Skip to content
This repository was archived by the owner on Mar 29, 2018. It is now read-only.
This repository was archived by the owner on Mar 29, 2018. It is now read-only.

Computed methods are not supported #11

@fkling

Description

@fkling

It seems like computed methods are not properly supported. Something like

class A {
  [foo](){...}
}

produces

$__Object$defineProperties(Graph.prototype, {
  foo: {
    value: ...
  }
});

Not sure what the best solution is here, but given that this is used with https://github.com/esnext/esnext, can we preserve the dynamic property name, i.e. produce

$__Object$defineProperties(Graph.prototype, {
  [foo]: {
    value: ...
  }
});

and run the computed properties transform after the class transform?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions