Skip to content

JavaScript FFI support of GHC wasm backend

Cheng Shao requested to merge type-dance/ghc:async-rtsapi-simp into master

Ready for review.

Done:

  • JSVal
  • foreign import javascript unsafe
  • foreign export javascript as sync JS functions

TODO list before undrafting:

  • foreign import javascript safe
  • foreign export javascript as async JS functions
  • dynamic imports
  • wrapper imports
  • FinalizerRegistry logic for JS functions
  • Ensure all added typechecking/desugaring logic only applies to ArchWasm32+JavaScriptCallConv and doesn't affect other cases
  • Tests
  • Source notes and user manual section
  • Clean up commit history
Edited by Cheng Shao

Merge request reports