Skip to content

Fix ElemSegment CheckType in shared validator#2570

Merged
sbc100 merged 1 commit into
WebAssembly:mainfrom
zherczeg:elem_type_fix
Mar 25, 2025
Merged

Fix ElemSegment CheckType in shared validator#2570
sbc100 merged 1 commit into
WebAssembly:mainfrom
zherczeg:elem_type_fix

Conversation

@zherczeg

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread test/spec/elem.txt
out/test/spec/elem.wast:585: assert_trap passed: uninitialized table element
out/test/spec/elem.wast:618: assert_invalid passed:
out/test/spec/elem/elem.61.wasm:000001f: error: type mismatch at elem segment. got externref, expected funcref
out/test/spec/elem/elem.61.wasm:000001f: error: type mismatch at elem segment. got funcref, expected externref

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

https://github.com/WebAssembly/testsuite/blob/main/elem.wast#L618

The table contains externref, not funcref.

@sbc100 sbc100 left a comment

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.

Thanks!

@sbc100 sbc100 enabled auto-merge (squash) March 25, 2025 18:10
@sbc100 sbc100 merged commit f81dff0 into WebAssembly:main Mar 25, 2025
@zherczeg zherczeg deleted the elem_type_fix branch March 25, 2025 19:30
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.

2 participants