I noticed that there's a field in Operator::CallIndirect
called table_byte
. What exactly is this used for? The only mention of it I could find in wasm-tools was in validation, where if table_byte
is zero and reference types are not enabled, it returns an error. Why exactly is this?
table_byte seems to be the first byte of the table index when encoded as ULEB128. The table index was required to be 0 before reference types were supported by wasm.
Last updated: Nov 22 2024 at 17:03 UTC