wasm: correctly get the type of a local for free

When determining the type of a local (read: register), we would
previously subtract the stack locals also. However, this locals
are also within the same `locals` list, meaning the type of the
local we were retrieving was off by 2. This could create a validation
error when we re-use a local of a different type.
6fcd72355cLuuk de Gram committed on 10/16/2022, 1:54:17 PMparente62bb1d
1 file changedLine totals unavailable