Skip to content

Class computed fields incorrect transpilation #1507

Description

@vemoo
class Test {
    ["foo"] = 2;
}

get transpiled to

var _a;
var Test = class {
  [_a] = 2;
};
_a = "foo";

which gets evaluated as

var Test = class {
  [undefined] = 2;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions