Skip to content

Commit ab6ca34

Browse files
authored
Merge pull request #767 from ocsigen/wasm
Wasm support
2 parents b264bf9 + 876eb2f commit ab6ca34

14 files changed

+894
-70
lines changed

dune-project

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ The client-side code is compiled to JS using Ocsigen Js_of_ocaml or to Wasm usin
2424
ocamlfind
2525
ppx_deriving
2626
(ppxlib (>= 0.15.0))
27-
(js_of_ocaml-compiler (>= 3.6.0))
28-
(js_of_ocaml (>= 3.6.0))
29-
(js_of_ocaml-lwt (>= 3.6.0))
27+
(js_of_ocaml-compiler (>= 5.5.0))
28+
(js_of_ocaml (>= 5.5.0))
29+
(js_of_ocaml-lwt (>= 5.5.0))
3030
(js_of_ocaml-ocamlbuild :build)
31-
(js_of_ocaml-ppx (>= 3.6.0))
32-
(js_of_ocaml-ppx_deriving_json (>= 3.6.0))
33-
(js_of_ocaml-tyxml (>= 3.6.0))
31+
(js_of_ocaml-ppx (>= 5.5.0))
32+
(js_of_ocaml-ppx_deriving_json (>= 5.5.0))
33+
(js_of_ocaml-tyxml (>= 5.5.0))
3434
lwt_log
3535
(lwt_ppx (>= 1.2.3))
3636
(tyxml (and (>= 4.6.0) (< 4.7.0)))

eliom.opam

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ depends: [
2222
"ocamlfind"
2323
"ppx_deriving"
2424
"ppxlib" {>= "0.15.0"}
25-
"js_of_ocaml-compiler" {>= "3.6.0"}
26-
"js_of_ocaml" {>= "3.6.0"}
27-
"js_of_ocaml-lwt" {>= "3.6.0"}
25+
"js_of_ocaml-compiler" {>= "5.5.0"}
26+
"js_of_ocaml" {>= "5.5.0"}
27+
"js_of_ocaml-lwt" {>= "5.5.0"}
2828
"js_of_ocaml-ocamlbuild" {build}
29-
"js_of_ocaml-ppx" {>= "3.6.0"}
30-
"js_of_ocaml-ppx_deriving_json" {>= "3.6.0"}
31-
"js_of_ocaml-tyxml" {>= "3.6.0"}
29+
"js_of_ocaml-ppx" {>= "5.5.0"}
30+
"js_of_ocaml-ppx_deriving_json" {>= "5.5.0"}
31+
"js_of_ocaml-tyxml" {>= "5.5.0"}
3232
"lwt_log"
3333
"lwt_ppx" {>= "1.2.3"}
3434
"tyxml" {>= "4.6.0" & < "4.7.0"}

src/lib/client/eliom_client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//Provides: caml_unwrap_value_from_string
44
//Requires: caml_failwith, caml_marshal_constants
55
//Requires: caml_int64_float_of_bits, caml_int64_of_bytes, caml_new_string
6-
//Requires: caml_jsbytes_of_string
6+
//Requires: caml_jsbytes_of_string, caml_callback
77
var caml_unwrap_value_from_string = function (){
88
function StringReader (s, i) { this.s = caml_jsbytes_of_string(s); this.i = i; }
99
StringReader.prototype = {
@@ -222,7 +222,7 @@ var caml_unwrap_value_from_string = function (){
222222
if (v[0] === 0 && size >= 2 &&
223223
v[size] instanceof Array && v[size].length == 3 &&
224224
v[size][2] === intern_obj_table[2] /*unwrap_mark*/) {
225-
var unwrapped_v = apply_unwrapper(v[size], v);
225+
var unwrapped_v = caml_callback(apply_unwrapper, [v[size], v]);
226226
if (unwrapped_v === 0) {
227227
// No unwrapper is registered, so replace the unwrap
228228
// marker v[size] by a late_unwrap marker

0 commit comments

Comments
 (0)