Replies: 4 comments 11 replies
|
Ah yes the intention is to use |
|
I also noticed slightly ambiguous behaviour with the CoreTypeEncoder.subtype. When you encode an array that has no subtype and pass subtype as |
|
When it comes to encoding the Initializers in the Globals section, how would one encode array/struct initialisation instructions? |

Uh oh!
There was an error while loading. Please reload this page.
Hi,
WASM GC introduces the notion of subtypes which is captured by
wasmparserhere. But, in the CoreTypeEncoder inwasm_encoderwhich is used to encode GC types into a binary, there is no obvious way to encode this subtype information.One possible way is to use
.subtype()to create a new subtype from scratch and encode it but I was wondering if there was a cleaner way to do this.All reactions