Closed alexcrichton closed 1 year ago
Yes, agreed, I think this is a bug in Binary.md. Will fix in a bit. Thanks!
I should also clarify that Luke is the one that found this, not me, it just came up in the context of some other stuff we were discussing and I was opening https://github.com/WebAssembly/component-model/issues/158 and figured I'd open this as well.
Currently
Binary.md
states:which while these are mostly aligned the
component
andinstance
codes are swapped. It turns out that thewasm-tools
implementation actually accidentally diverges from the spec here and uses 0x04 for components and 0x05 for instances, so swapping the last two cases inexterndesc
may be the way to go for now?