@@ -100,8 +100,7 @@ let ocaml_to_js_eff
100
100
| Optional ->
101
101
Js_of_lam_option. get_default_undefined_from_optional raw_arg
102
102
| Label | Empty -> raw_arg
103
- | EmptyCst
104
- -> assert false in
103
+ in
105
104
match arg_type with
106
105
| Arg_cst _ -> assert false
107
106
| Fn_uncurry_arity _ -> assert false
@@ -175,7 +174,7 @@ let assemble_args_no_splice call_loc ffi
175
174
match labels, args with
176
175
| [] , _
177
176
-> 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
179
178
| { arg_label = Label ; arg_type = Arg_cst cst } :: labels , args ->
180
179
let accs, eff = aux labels args in
181
180
Lam_compile_const. translate_arg_cst cst :: accs, eff
@@ -187,8 +186,7 @@ let assemble_args_no_splice call_loc ffi
187
186
~arg_label ~arg_type arg in
188
187
append_list acc accs, Ext_list. append new_eff eff
189
188
| { arg_label = Empty | Label | Optional ; _ } :: _ , []
190
- -> assert false
191
- | {arg_label = EmptyCst ; _} :: _ , _ -> assert false
189
+ -> assert false
192
190
in
193
191
let args, eff = aux arg_types args in
194
192
args,
@@ -203,7 +201,7 @@ let assemble_args_has_splice call_loc ffi (arg_types : specs) (args : exprs)
203
201
let rec aux (labels : specs ) (args : exprs ) =
204
202
match labels, args with
205
203
| [] , _ -> 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
207
205
| { arg_label = Label ; arg_type = Arg_cst cst } :: labels , args ->
208
206
let accs, eff = aux labels args in
209
207
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)
220
218
append_list acc accs, Ext_list. append new_eff eff
221
219
end
222
220
| { arg_label = Empty | Label | Optional ; _ } :: _ , []
223
- -> assert false
224
- | {arg_label = EmptyCst ;_ } :: _ , _ -> assert false
221
+ -> assert false
225
222
in
226
223
let args, eff = aux arg_types args in
227
224
args,
0 commit comments