File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ external int_to_js: int -> t = "%identity"
27
27
external bool_of_js : t -> bool = " caml_js_to_bool"
28
28
external bool_to_js : bool -> t = " caml_js_from_bool"
29
29
30
- external float_of_js : t -> float = " %identity "
31
- external float_to_js : float -> t = " %identity "
30
+ external float_of_js : t -> float = " caml_js_to_float "
31
+ external float_to_js : float -> t = " caml_js_from_float "
32
32
33
33
external obj : (string * t ) array -> t = " caml_js_object"
34
34
@@ -91,7 +91,7 @@ let list_to_js f l =
91
91
array_to_js f (Array. of_list l)
92
92
93
93
let option_of_js f x =
94
- if equals x null || x == undefined then None
94
+ if equals x null then None
95
95
else Some (f x)
96
96
97
97
let option_to_js f = function
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ external int_to_js: int -> t = "%identity"
21
21
external bool_of_js : t -> bool = " caml_js_to_bool"
22
22
external bool_to_js : bool -> t = " caml_js_from_bool"
23
23
24
- external float_of_js : t -> float = " %identity "
25
- external float_to_js : float -> t = " %identity "
24
+ external float_of_js : t -> float = " caml_js_to_float "
25
+ external float_to_js : float -> t = " caml_js_from_float "
26
26
27
27
val array_of_js : (t -> 'a ) -> t -> 'a array
28
28
val array_to_js : ('a -> t ) -> 'a array -> t
You can’t perform that action at this time.
0 commit comments