Skip to content

Why don't we use Symbol in this case? #1

@chiro-hiro

Description

@chiro-hiro

https://github.com/VinCSS-Public-Projects/FIDO2Client/blob/master/src/FIDO2Client/Constants.js#L5-L36

Every events were listed here are unique that meant there are no new events will be created in runtime. So, Symbol is perfect fit, It prevent string to be emitted.

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