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

Cheng Shao
authored
This patch fixes setImmediate() implementation for Cloudflare Workers in the wasm backend's js prelude script. Cloudflare Workers doesn't support the MessageChannel API, and we use a setTimeout() based fallback implementation in this case. (cherry picked from commit c37b96fa) (cherry picked from commit 6bd2d9ad)