Skip to content
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

Error using wasm2wat on a wasm file generated by Moonbit: "unexpected type form (got -0x30)" #2394

Closed
panicfrog opened this issue Feb 19, 2024 · 1 comment

Comments

@panicfrog
Copy link

panicfrog commented Feb 19, 2024

I encountered an error message when attempting to use the wasm2wat tool to convert a .wasm file generated by the Moonbit toolchain with --target wasm-gc into the .wat format. The error message indicated an unexpected type form. Here are the wasm file. i also generated a .wat format wat file by moonbit.

  • wasm2wat version: 1.0.34
  • Operating System: Macos Ventura 13.5.2 x86_64
  • Moonbit version: moon 0.1.0 (9e06fe3 2024-02-05)
@keithw
Copy link
Member

keithw commented Feb 19, 2024

WABT does not support the GC (or function-references) proposals; we don't even have a line for them in our feature matrix in the README yet. You best bet is probably to use wasm-tools parse (https://github.com/bytecodealliance/wasm-tools/) instead.

@keithw keithw closed this as completed Feb 19, 2024
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

No branches or pull requests

2 participants