Skip to content

[test] Add tests for functions sharing same implementation#1289

Merged
rossberg merged 1 commit intoWebAssembly:masterfrom
shareup:shared-func-impl
Mar 4, 2021
Merged

[test] Add tests for functions sharing same implementation#1289
rossberg merged 1 commit intoWebAssembly:masterfrom
shareup:shared-func-impl

Conversation

@atdrendel
Copy link
Contributor

This pull request adds a test to verify WebAssembly interpreters correctly handle the case where multiple exported functions share a single implementation. I've run into this problem when trying to use Libsodium with some Wasm interpreters. Libsodium exposes a number of different functions that wrap private constants, some of which are equal. These functions are all compiled down into the same WebAssembly function implementation with different exported names.

@atdrendel
Copy link
Contributor Author

I've requested access to the WebAssembly Community Group.

@atdrendel atdrendel changed the title Add tests for functions sharing same implementation [test] Add tests for functions sharing same implementation Feb 21, 2021
@atdrendel
Copy link
Contributor Author

@rossberg My request to join the W3C WebAssembly group has been approved. Please let me know if there is anything you want me to change in this pull request before merging it.

@rossberg rossberg merged commit 36d993c into WebAssembly:master Mar 4, 2021
@atdrendel atdrendel deleted the shared-func-impl branch March 4, 2021 10:14
gumb0 pushed a commit to wasmx/wasm-spec that referenced this pull request Mar 4, 2021
gumb0 pushed a commit to wasmx/wasm-spec that referenced this pull request Jun 23, 2022
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