From 28f27d9236ed162e78ee4c5658f39dc4ccabf76c Mon Sep 17 00:00:00 2001 From: Jan Midtgaard Date: Fri, 1 Dec 2023 16:12:32 +0100 Subject: [PATCH] Document the JSPI extension too --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 8564f262d..683998da2 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,12 @@ In particular, the output code requires the following [Wasm extensions](https:// - [the tail-call extension](https://github.com/WebAssembly/tail-call/blob/main/proposals/tail-call/Overview.md) - [the exception handling extension](https://github.com/WebAssembly/exception-handling/blob/master/proposals/exception-handling/Exceptions.md) +OCaml 5.x code using effect handlers can be compiled in two different ways: +One can enable the CPS transformation from `js_of_ocaml` by passing the +`--enable=effects` flag. Without the flag `wasm_of_ocaml` will instead emit code +utilizing +- [the JavaScript-Promise Integration extension](https://github.com/WebAssembly/js-promise-integration/blob/main/proposals/js-promise-integration/Overview.md) + ## Installation