Skip to content

Transform static class field even target esnextΒ #43113

Closed
@Kingwl

Description

@Kingwl

Bug Report

πŸ”Ž Search Terms

esnext, class, static

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________

⏯ Playground Link

Playground link with relevant code

πŸ’» Code

class C {
  static t = () => this
}

πŸ™ Actual behavior

class C {
}
C.t = () => this;

And with an exception.

πŸ™‚ Expected behavior

class C {
  static t = () => this
}

Works fine. And:
C.t() === C // true

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