Skip to content

Getters and setters with computed names emit invalid code #69

@adrianheine

Description

@adrianheine
obj = {
  get [x] () { return 1 },
  set [x] (value) { valueSet = value }
};

emits

obj = {};
objget [x] = () { return 1 };
objset [x] = (value) { valueSet = value };

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions