Skip to content

Commit fa13694

Browse files
committed
tweak
1 parent 62335cd commit fa13694

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jscomp/core/lam_compile_external_call.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,14 @@ let assemble_args_no_splice call_loc ffi
178178
->
179179
let accs, eff = aux labels args in
180180
Lam_compile_const.translate_arg_cst cst :: accs, eff
181-
| {arg_label = Empty | Label | Optional as arg_label ; arg_type } ::labels,
181+
| {arg_label ; arg_type } ::labels,
182182
arg :: args
183183
->
184184
let accs, eff = aux labels args in
185185
let acc, new_eff = ocaml_to_js_eff
186186
~arg_label ~arg_type arg in
187187
append_list acc accs, Ext_list.append new_eff eff
188-
| { arg_label = Empty | Label | Optional ; _ } :: _ , []
188+
| _ :: _ , []
189189
-> assert false
190190
in
191191
let args, eff = aux arg_types args in
@@ -205,7 +205,7 @@ let assemble_args_has_splice call_loc ffi (arg_types : specs) (args : exprs)
205205
->
206206
let accs, eff = aux labels args in
207207
Lam_compile_const.translate_arg_cst cst :: accs, eff
208-
| ({arg_label = Empty | Label | Optional as arg_label; arg_type }) ::labels,
208+
| ({arg_label ; arg_type }) ::labels,
209209
arg :: args
210210
->
211211
let accs, eff = aux labels args in
@@ -217,7 +217,7 @@ let assemble_args_has_splice call_loc ffi (arg_types : specs) (args : exprs)
217217
let acc, new_eff = ocaml_to_js_eff ~arg_type ~arg_label arg in
218218
append_list acc accs, Ext_list.append new_eff eff
219219
end
220-
| { arg_label = Empty | Label | Optional ; _ } :: _ , []
220+
| _ :: _ , []
221221
-> assert false
222222
in
223223
let args, eff = aux arg_types args in

0 commit comments

Comments
 (0)