Skip to content

Prose is missing steps for declared element segments during instantiation #1562

Closed

Description

@eqrion

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

Activity

  1. rossberg commented on Dec 5, 2022

    @rossberg
    Member

    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.

  2. eqrion commented on Dec 5, 2022

    @eqrion
    CollaboratorAuthor

    Thanks!

  3. added a commit that references this issue on Mar 17, 2023
    9f861ea
  4. added a commit that references this issue on Jul 12, 2023
    f1a130c
  5. added a commit that references this issue on Feb 3, 2024
    ff149b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions