Skip to content

Remove special case for memory import. NFC#21818

Merged
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:wasmMemory
Apr 24, 2024
Merged

Remove special case for memory import. NFC#21818
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:wasmMemory

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Apr 24, 2024

This is no longer needed since #21701 landed

@sbc100 sbc100 requested review from dschuff and kripken April 24, 2024 06:56
extra_sent_items.append('alignfault')

# Special case for importing memory and table
# TODO(sbc): can we make these into normal library symbols?
Copy link
Member

Choose a reason for hiding this comment

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

Are there symbol types for memories?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, we could add memories and tables to this list:

imports = [i.field for i in imports if i.kind in (webassembly.ExternType.FUNC, webassembly.ExternType.GLOBAL, webassembly.ExternType.TAG)]

My initial attempt to do that didn't work but I hope to figure it out at some point.

@sbc100 sbc100 merged commit d8afbc7 into emscripten-core:main Apr 24, 2024
@sbc100 sbc100 deleted the wasmMemory branch April 24, 2024 21:15
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.

2 participants