[Git][ghc/ghc][wip/wasm-fix-ghci-jsffi-export] wasm: fix `Illegal foreign declaration` failure when ghci loads modules with JSFFI exports