-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is global.get
allowed in element segments?
#2201
Comments
TethysSvensson
changed the title
Is
Is Apr 16, 2023
global.get
in element segment?global.get
allowed in element segments?
Interesting, that does look like a bug in the support for the reference types proposal, but it also must represent a hole in the spec tests since wabt runs all the spec tests tests for reference types. |
I added a spec test to cover this case, but it will take a bit of work on the wabt side to fix it I think. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As far as I can tell from the webassembly spec, it should be valid to use the
global.get
instruction in an element segment.However I am unable to use
wat2wasm
on this moduleIf I try, I get this error:
If I use the
--no-check
flag I am able to override the check and generate a resulting.wasm
file.Looking at the generated file in a hexdump, it looks exactly like I would expect it to. However I am unable to get
wasm2wat
to accept this generated module, even if I use the--no-check
flag.Am I misreading the spec, or is this a bug in wabt?
The text was updated successfully, but these errors were encountered: