Skip to content
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

DOCS Update Module-Splitting code #20118

Merged
merged 2 commits into from
Aug 27, 2023

Conversation

hoodmane
Copy link
Contributor

A few fixes to the module splitting code example:

  1. I'm not sure when wasmExports exists, but when I tried this, I had to use Module.asm instead.
  2. Using buffer yields an error saying it's been removed and to use HEAP8.buffer instead.
  3. nodeFS is not defined unless we specifically require it.

A few fixes to the module splitting code example:
1. I'm not sure when `wasmExports` exists, but when I tried this, I had
   to use `Module.asm` instead.
2. Using `buffer` yields an error saying it's been removed and to use
   `HEAP8.buffer` instead.
3. `nodeFS` is not defined unless we specifically `require` it.
@sbc100 sbc100 self-requested a review August 24, 2023 17:25
@sbc100
Copy link
Collaborator

sbc100 commented Aug 24, 2023

Module.asm was renamed to wasmExports. See #19816, #19900 and #19901.

@sbc100 sbc100 requested a review from tlively August 24, 2023 17:27
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@tlively
Copy link
Member

tlively commented Aug 24, 2023

Oh, I guess @sbc100's comment means the change to wasmExports should be reverted.

@hoodmane
Copy link
Contributor Author

I restored wasmExports so I think this can be merged?

@sbc100 sbc100 merged commit a34d0bd into emscripten-core:main Aug 27, 2023
26 checks passed
@hoodmane hoodmane deleted the module-splitting-example branch August 28, 2023 07:10
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

Successfully merging this pull request may close these issues.

3 participants