Skip to content

Add support for Wasm ESM integration proposal #24060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 of 8 tasks
sbc100 opened this issue Apr 7, 2025 · 0 comments
Open
3 of 8 tasks

Add support for Wasm ESM integration proposal #24060

sbc100 opened this issue Apr 7, 2025 · 0 comments

Comments

@sbc100
Copy link
Collaborator

sbc100 commented Apr 7, 2025

  • Add new flag
  • Support incoming module arguments
  • Support exporting JS library functions
  • Support wasm64 (requires wasm export wrappers)
  • Support JSPI (requires wasm export wrappers)
  • Support dynamic linking (can we even do this?)
  • Support embind
  • Support pthreads
sbc100 added a commit to sbc100/emscripten that referenced this issue Apr 7, 2025
This change delays module argument processing until the init function
is run.  This means that at least some INCOMING_MODULE_JS_API properties
can be supported with ESM integration.

See emscripten-core#24060
sbc100 added a commit that referenced this issue Apr 7, 2025
This change delays module argument processing until the init function is
run. This means that at least some INCOMING_MODULE_JS_API properties can
be supported with ESM integration.

 See #24060
sbc100 added a commit to sbc100/emscripten that referenced this issue Apr 7, 2025
sbc100 added a commit to sbc100/emscripten that referenced this issue Apr 7, 2025
sbc100 added a commit to sbc100/emscripten that referenced this issue Apr 7, 2025
sbc100 added a commit to sbc100/emscripten that referenced this issue Apr 7, 2025
sbc100 added a commit to sbc100/emscripten that referenced this issue Apr 7, 2025
sbc100 added a commit to sbc100/emscripten that referenced this issue Apr 8, 2025
sbc100 added a commit to sbc100/emscripten that referenced this issue Apr 8, 2025
sbc100 added a commit to sbc100/emscripten that referenced this issue May 9, 2025
This change also adds a new core test mode for ESM integration and
uses this to run all the variants of test_fs_js_api.

As part of this I also updated the octal constants in test_fs_js_api.c
which are required to be of the new form in strict JS.  All code in ES
modules is implicitly in strict mode.

Split out from emscripten-core#24288

See emscripten-core#24060
sbc100 added a commit to sbc100/emscripten that referenced this issue May 9, 2025
This change also adds a new core test mode for ESM integration and
uses this to run all the variants of test_fs_js_api.

As part of this I also updated the octal constants in test_fs_js_api.c
which are required to be of the new form in strict JS.  All code in ES
modules is implicitly in strict mode.

Split out from emscripten-core#24288

See emscripten-core#24060
sbc100 added a commit to sbc100/emscripten that referenced this issue May 9, 2025
This change also adds a new core test mode for ESM integration and
uses this to run all the variants of test_fs_js_api.

As part of this I also updated the octal constants in test_fs_js_api.c
which are required to be of the new form in strict JS.  All code in ES
modules is implicitly in strict mode.

Split out from emscripten-core#24288

See emscripten-core#24060
sbc100 added a commit to sbc100/emscripten that referenced this issue May 9, 2025
This change also adds a new core test mode for ESM integration and
uses this to run all the variants of test_fs_js_api.

As part of this I also updated the octal constants in test_fs_js_api.c
which are required to be of the new form in strict JS.  All code in ES
modules is implicitly in strict mode.

Split out from emscripten-core#24288

See emscripten-core#24060
sbc100 added a commit that referenced this issue May 9, 2025
This change also adds a new core test mode for ESM integration and uses
this to run all the variants of test_fs_js_api.

As part of this I also updated the octal constants in test_fs_js_api.c
which are required to be of the new form in strict JS. All code in ES
modules is implicitly in strict mode.

Split out from #24288

See #24060
sbc100 added a commit to sbc100/emscripten that referenced this issue May 13, 2025
sbc100 added a commit to sbc100/emscripten that referenced this issue May 13, 2025
sbc100 added a commit to sbc100/emscripten that referenced this issue May 13, 2025
sbc100 added a commit to sbc100/emscripten that referenced this issue May 13, 2025
sbc100 added a commit that referenced this issue May 13, 2025
These tests just required updating to handle `.mjs` rather than `.js`
output.

Split out from #24288

See #24060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant