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