Skip to content

Don't use reserved keywords as object properties #1639

@soroushhakami

Description

@soroushhakami

Doing something like:

$state.current.abstract

Will cause errors with some minifiers such as Adobes JsFileBuilder.
Perhaps it'd be a good idea to not use any of the reserved keywords (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords) as object properties? And instead use something like

$state.current.isAbstract

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions