Skip to content

question about eval #1369

@Violet-Bora-Lee

Description

@Violet-Bora-Lee

Hi, im translating the article related to eval.

I'm confusing this sentence.

Code minifiers (tools used before JS gets to production, to compress it) replace local variables with shorter ones for optimization. That's usually safe, but not if eval is used, as it may reference them. So minifiers don't replace all local variables that might be visible from eval. That negatively affects code compression ratio.

Could you specify what it means and them means?

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