JavaScript FFI support of GHC wasm backend
Ready for review.
Done:
-
JSVal -
foreign import javascript unsafe -
foreign export javascriptas sync JS functions
TODO list before undrafting:
-
foreign import javascript safe -
foreign export javascriptas async JS functions -
dynamicimports -
wrapperimports -
FinalizerRegistrylogic for JS functions -
Ensure all added typechecking/desugaring logic only applies to ArchWasm32+JavaScriptCallConvand doesn't affect other cases -
Tests -
Source notes and user manual section -
Clean up commit history
Edited by Cheng Shao