Skip to content

Interop feature for new.target in JS functions #4588

Open
@sjrd

Description

@sjrd

Extracted from #2638. We can now use js.new.target to refer to new.target in the constructor of a JS class. However, there is still no way to access new.target from a non-arrow function (i.e., a js.ThisFunction).

Metadata

Metadata

Assignees

No one assigned

    Labels

    languageAffects language semantics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions