[release/7.0] [wasm] Fix JSExport on struct and records
#74890
Merged
JSExport on struct and records
#74890