@@ -100,8 +100,7 @@ let ocaml_to_js_eff
100100 | Optional ->
101101 Js_of_lam_option. get_default_undefined_from_optional raw_arg
102102 | Label | Empty -> raw_arg
103- | EmptyCst
104- -> assert false in
103+ in
105104 match arg_type with
106105 | Arg_cst _ -> assert false
107106 | Fn_uncurry_arity _ -> assert false
@@ -175,7 +174,7 @@ let assemble_args_no_splice call_loc ffi
175174 match labels, args with
176175 | [] , _
177176 -> assert (args = [] ) ; empty_pair
178- | { arg_label = EmptyCst ; arg_type = Arg_cst cst } :: labels, args
177+ | { arg_label = Empty ; arg_type = Arg_cst cst } :: labels, args
179178 | { arg_label = Label ; arg_type = Arg_cst cst } :: labels , args ->
180179 let accs, eff = aux labels args in
181180 Lam_compile_const. translate_arg_cst cst :: accs, eff
@@ -187,8 +186,7 @@ let assemble_args_no_splice call_loc ffi
187186 ~arg_label ~arg_type arg in
188187 append_list acc accs, Ext_list. append new_eff eff
189188 | { arg_label = Empty | Label | Optional ; _ } :: _ , []
190- -> assert false
191- | {arg_label = EmptyCst ; _} :: _ , _ -> assert false
189+ -> assert false
192190 in
193191 let args, eff = aux arg_types args in
194192 args,
@@ -203,7 +201,7 @@ let assemble_args_has_splice call_loc ffi (arg_types : specs) (args : exprs)
203201 let rec aux (labels : specs ) (args : exprs ) =
204202 match labels, args with
205203 | [] , _ -> assert (args = [] ); empty_pair
206- | { arg_label = EmptyCst ; arg_type = Arg_cst cst} :: labels , args
204+ | { arg_label = Empty ; arg_type = Arg_cst cst} :: labels , args
207205 | { arg_label = Label ; arg_type = Arg_cst cst } :: labels , args ->
208206 let accs, eff = aux labels args in
209207 Lam_compile_const. translate_arg_cst cst :: accs, eff
@@ -220,8 +218,7 @@ let assemble_args_has_splice call_loc ffi (arg_types : specs) (args : exprs)
220218 append_list acc accs, Ext_list. append new_eff eff
221219 end
222220 | { arg_label = Empty | Label | Optional ; _ } :: _ , []
223- -> assert false
224- | {arg_label = EmptyCst ;_ } :: _ , _ -> assert false
221+ -> assert false
225222 in
226223 let args, eff = aux arg_types args in
227224 args,
0 commit comments