Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

[spec/interpreter/test] Fix binary & validation for table.copy/init - #80

Merged
rossberg merged 1 commit into
masterfrom
multi-table-bulk.fix
Feb 13, 2020
Merged

rossberg merged 1 commit into
masterfrom
multi-table-bulk.fix

Conversation

@rossberg

Copy link
Copy Markdown
Member

Binary format and validation weren't updated to multi-table yet.

Also fixed typing in interpreter, which didn't check that source elem type matches dest elem type. Added test.

Fixes oversights noted by @fitzgen.

@rossberg
rossberg merged commit d258902 into master Feb 13, 2020
@rossberg
rossberg deleted the multi-table-bulk.fix branch February 13, 2020 17:28

* Let :math:`\X{gt}^\ast` be the concatenation of the internal :ref:`global types <syntax-globaltype>` :math:`\X{gt}_i`, in index order.

* Let :math:`\X{rt}^\ast` be the concatenation of the :ref:`referense types <syntax-reftype>` :math:`\X{rt}_i`, in index order.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sp: reference

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oops, thanks, fixed.

rossberg pushed a commit that referenced this pull request May 14, 2020
The data count section has a count that must match the number of data segments. If the data count section isn't present, then `memory.init` and `data.drop` cannot be used.

Fixes issue #73.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants