[wasm] Fix JSExport on struct and records
#74763
Merged
JSExport on struct and records
#74763