emscripten-core / emscripten-core/emscripten
In `-sMODULARIZE` mode the `moduleArg` should not be modified in place
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Right now you can observe the new module object propertires before the module promise resolves, breaking the encapsulation.
I tried to avoid this in the past but its make very hard due the way fact that we `return moduleArg` at the end of the generated code and returning anything else is tricky when building with `--closure=1`.
Contributor guide
Assessment
This issue has not been assessed yet.