Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix table exporting #4736

Merged
merged 2 commits into from
Jun 17, 2022
Merged

Fix table exporting #4736

merged 2 commits into from
Jun 17, 2022

Conversation

kripken
Copy link
Member

@kripken kripken commented Jun 17, 2022

This code was apparently not updated when we added multi-table support,
and still had the old hardcoded index 0.

Fixes #4711

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.

How did you find this?

@kripken
Copy link
Member Author

kripken commented Jun 17, 2022

How did you find this?

I reduced the testcase in the linked issue until it was obvious from reading the diff after roundtripping. And since the bug only happens in the binary format, and just during writing, I read that code and got a surprise 😄

@kripken kripken enabled auto-merge (squash) June 17, 2022 00:35
@kripken kripken merged commit 4652398 into main Jun 17, 2022
@kripken kripken deleted the tableexport branch June 17, 2022 00:42
@torokati44
Copy link

Are there any estimates for the date of the next release, with this fix in it?

@kripken kripken mentioned this pull request Aug 31, 2022
@kripken
Copy link
Member Author

kripken commented Aug 31, 2022

@torokati44 I released version 110 now, https://github.com/WebAssembly/binaryen/releases/tag/version_110 (builds still running)

@torokati44
Copy link

Wow, that was quick! Thank you so much! We won't have to build for ourselves in CI now.

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

Successfully merging this pull request may close these issues.

Failed to grow table with wasm-opt and wasm-bindgen
3 participants