@@ -100,7 +100,6 @@ 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
- | LabelCst
104
103
| EmptyCst
105
104
-> assert false in
106
105
match arg_type with
@@ -177,7 +176,7 @@ let assemble_args_no_splice call_loc ffi
177
176
| [] , _
178
177
-> assert (args = [] ) ; empty_pair
179
178
| { arg_label = EmptyCst ; arg_type = Arg_cst cst } :: labels, args
180
- | { arg_label = LabelCst ; arg_type = Arg_cst cst } :: labels , args ->
179
+ | { arg_label = Label ; arg_type = Arg_cst cst } :: labels , args ->
181
180
let accs, eff = aux labels args in
182
181
Lam_compile_const. translate_arg_cst cst :: accs, eff
183
182
| {arg_label = Empty | Label | Optional as arg_label ; arg_type } ::labels,
@@ -189,7 +188,7 @@ let assemble_args_no_splice call_loc ffi
189
188
append_list acc accs, Ext_list. append new_eff eff
190
189
| { arg_label = Empty | Label | Optional ; _ } :: _ , []
191
190
-> assert false
192
- | {arg_label = EmptyCst | LabelCst ; _} :: _ , _ -> assert false
191
+ | {arg_label = EmptyCst ; _} :: _ , _ -> assert false
193
192
in
194
193
let args, eff = aux arg_types args in
195
194
args,
@@ -205,7 +204,7 @@ let assemble_args_has_splice call_loc ffi (arg_types : specs) (args : exprs)
205
204
match labels, args with
206
205
| [] , _ -> assert (args = [] ); empty_pair
207
206
| { arg_label = EmptyCst ; arg_type = Arg_cst cst} :: labels , args
208
- | { arg_label = LabelCst ; arg_type = Arg_cst cst } :: labels , args ->
207
+ | { arg_label = Label ; arg_type = Arg_cst cst } :: labels , args ->
209
208
let accs, eff = aux labels args in
210
209
Lam_compile_const. translate_arg_cst cst :: accs, eff
211
210
| ({arg_label = Empty | Label | Optional as arg_label; arg_type }) ::labels,
@@ -222,7 +221,7 @@ let assemble_args_has_splice call_loc ffi (arg_types : specs) (args : exprs)
222
221
end
223
222
| { arg_label = Empty | Label | Optional ; _ } :: _ , []
224
223
-> assert false
225
- | {arg_label = EmptyCst | LabelCst ;_ } :: _ , _ -> assert false
224
+ | {arg_label = EmptyCst ;_ } :: _ , _ -> assert false
226
225
in
227
226
let args, eff = aux arg_types args in
228
227
args,
0 commit comments