The references types proposal landed a couple years ago: https://github.com/WebAssembly/spec/pull/1287 and requires some changes here, for example support for the `externref` value type.