Closed eqrion closed 1 year ago
The rules for module instantiation specify that declarative element segments are dropped during instantiation [1]:
runelemπ({type et, init ref π, mode declarative}) = (elem.drop π)
But the prose only has a rule for active element segments:
For each element segment elemπ in module.elems whose mode is of the form active {table tableidx π, offset einstr * π end}, do: ...
I think we need an extension to the prose to mention that declarative segments are dropped during instantiation.
[1] https://webassembly.github.io/spec/core/exec/modules.html#instantiation
Oops, I accidentally committed to the repo instead of creating a branch, plus I screwed it up so had to hotfix it with another commit. :-{
But that aside, it should be fixed by the last two commits.
Thanks!
The rules for module instantiation specify that declarative element segments are dropped during instantiation [1]:
But the prose only has a rule for active element segments:
I think we need an extension to the prose to mention that declarative segments are dropped during instantiation.
[1] https://webassembly.github.io/spec/core/exec/modules.html#instantiation