Forked from
Glasgow Haskell Compiler / GHC
This fork has diverged from the upstream repository.

Cheng Shao
authored
This patch fixes foreign import javascript "wrapper" in wasm backend's TH/ghci by fixing the handling of dyld/finalization_registry magic variables. Fixes T25473 and closes #25473. (cherry picked from commit bd0a8b7e)