Skip to content

Adopt private field/methods in ES2022 #29

Closed
@Eskibear

Description

@Eskibear

https://262.ecma-international.org/13.0/#sec-privateelement-specification-type
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_properties

We can prepend # to names of private fields and methods. Then users won't have chance to access those internal members.

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