Skip to content

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

@eqrion

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

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