Skip to content

Ensure that inline (data)s and (elem)s count toward identifiers - #2242

Open
bvisness wants to merge 1 commit into
WebAssembly:mainfrom
bvisness:data-elem-ids
Open

Ensure that inline (data)s and (elem)s count toward identifiers#2242
bvisness wants to merge 1 commit into
WebAssembly:mainfrom
bvisness:data-elem-ids

Conversation

@bvisness

@bvisness bvisness commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

The (memory (data ...)) and (table (elem ...)) abbreviations were not correctly counting the indices of the data and elem segments, causing the identifiers' indices on later data and elem segments to be off by one. Because the identifier context needs to be updated as we parse, memory_fields and table_fields are updated to do some of their work in the first pass.

The (memory (data ...)) and (table (elem ...)) syntax sugar was not
correctly counting the indices of the data and elem segments, causing
the identifiers' indices on later data and elem segments to be off by one.
Because the identifier context needs to be updated as we parse,
memory_fields and table_fields are updated to do some of their work in
the first pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant