JavaScript FFI support of GHC wasm backend
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