Skip to content

Don't use var in js code #136938

@sobolevn

Description

@sobolevn

While reviewing recent js code changes related to WASM / Emscripten I've noticed that there are lots of existing and new var declarations.

Good reference: https://javascript.plainenglish.io/why-you-should-never-use-var-again-seriously-447183bd8d62

We should change them to be let and const.

Related: https://github.com/python/cpython/pull/136837/files

Linked PRs

Metadata

Metadata

Assignees

Labels

OS-emscripteninterpreter-core(Objects, Python, Grammar, and Parser dirs)type-refactorCode refactoring (with no changes in behavior)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy