emscripten-core / emscripten-core/emscripten

"Module" name in generated JS is misleading

Open
#18,727 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

The right name would be "Instance".

Because Module in WASM is something else (compiled program code), and what the script is doing - it creates an instance.

What do you think?

P.S. This name essentially propagates through my function names (such as `createModule`) and comments, causing confusion along the way.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.