-
When I tried to use
wasm2wat 1.wasm -o 1.wat
# 000000e: error: unexpected type form (got 0x5f)
wasm-objdump -d 1.wasm
# 5.wasm: file format wasm 0x1
# 0000017: error: expected valid param type (got -0x1d)
# 000063d: error: invalid section code: 14
# 000079e: error: invalid global type: 0xffffffe4
# 00015a2: error: expected valid local type
# ... Since the Wasm generated by Binaryen is valid and free from undefined behaviors, I am a little bit puzzled why this happened. I've attached the target wasm file and did I get something wrong or it is normal? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
wasm2wat and wasm-objdump do not know about WasmGC type definitions. I would recommend using wasm-tools (https://github.com/bytecodealliance/wasm-tools) to do your wasm-to-wat conversions instead. |
Beta Was this translation helpful? Give feedback.
wasm2wat and wasm-objdump do not know about WasmGC type definitions. I would recommend using wasm-tools (https://github.com/bytecodealliance/wasm-tools) to do your wasm-to-wat conversions instead.