@@ -101,7 +101,7 @@ let ocaml_to_js_eff
101101 Js_of_lam_option. get_default_undefined_from_optional raw_arg
102102 | Label | Empty -> raw_arg
103103 | LabelCst _
104- | EmptyCst _
104+ | EmptyCst
105105 -> assert false in
106106 match arg_type with
107107 | Arg_cst _ -> assert false
@@ -176,7 +176,7 @@ let assemble_args_no_splice call_loc ffi
176176 match labels, args with
177177 | [] , _
178178 -> assert (args = [] ) ; empty_pair
179- | { arg_label = EmptyCst cst ; _ } :: labels, args
179+ | { arg_label = EmptyCst ; arg_type = Arg_cst cst } :: labels, args
180180 | { arg_label = LabelCst {cst ;} ; _} :: labels , args ->
181181 let accs, eff = aux labels args in
182182 Lam_compile_const. translate_arg_cst cst :: accs, eff
@@ -189,6 +189,7 @@ let assemble_args_no_splice call_loc ffi
189189 append_list acc accs, Ext_list. append new_eff eff
190190 | { arg_label = Empty | Label | Optional ; _ } :: _ , []
191191 -> assert false
192+ | {arg_label = EmptyCst ; _} :: _ , _ -> assert false
192193 in
193194 let args, eff = aux arg_types args in
194195 args,
@@ -203,7 +204,7 @@ let assemble_args_has_splice call_loc ffi (arg_types : specs) (args : exprs)
203204 let rec aux (labels : specs ) (args : exprs ) =
204205 match labels, args with
205206 | [] , _ -> assert (args = [] ); empty_pair
206- | { arg_label = EmptyCst cst ; _ } :: labels , args
207+ | { arg_label = EmptyCst ; arg_type = Arg_cst cst } :: labels , args
207208 | { arg_label = LabelCst {cst} ; _} :: labels , args ->
208209 let accs, eff = aux labels args in
209210 Lam_compile_const. translate_arg_cst cst :: accs, eff
@@ -221,6 +222,7 @@ let assemble_args_has_splice call_loc ffi (arg_types : specs) (args : exprs)
221222 end
222223 | { arg_label = Empty | Label | Optional ; _ } :: _ , []
223224 -> assert false
225+ | {arg_label = EmptyCst ;_ } :: _ , _ -> assert false
224226 in
225227 let args, eff = aux arg_types args in
226228 args,
0 commit comments