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