Skip to content

Conversation

@hoodmane
Copy link
Collaborator

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
Collaborator Author

I restored wasmExports so I think this can be merged?

@sbc100 sbc100 merged commit a34d0bd into emscripten-core:main Aug 27, 2023
@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