@@ -373,7 +373,7 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) :
373
373
let exit_map = Hash_int. create 0 in
374
374
let may_depends = Lam_module_ident.Hash_set. create 0 in
375
375
376
- let rec convert_ccall ?(transformed_jsx = None )
376
+ let rec convert_ccall ?(transformed_jsx = false )
377
377
(a_prim : Primitive.description ) (args : Lambda.lambda list ) loc
378
378
~dynamic_import : Lam. t =
379
379
let prim_name = a_prim.prim_name in
@@ -382,14 +382,13 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) :
382
382
let args = Ext_list. map args convert_aux in
383
383
prim ~primitive: (Pjs_object_create labels) ~args loc
384
384
| Ffi_bs (arg_types , result_type , ffi ) ->
385
- Format. fprintf Format. err_formatter " Ffi_bs\n " ;
386
385
let arg_types =
387
386
match arg_types with
388
387
| Params ls -> ls
389
388
| Param_number i -> Ext_list. init i (fun _ -> External_arg_spec. dummy)
390
389
in
391
390
let args = Ext_list. map args convert_aux in
392
- Lam. handle_bs_non_obj_ffi ? transformed_jsx arg_types result_type ffi args
391
+ Lam. handle_bs_non_obj_ffi ~ transformed_jsx arg_types result_type ffi args
393
392
loc prim_name ~dynamic_import
394
393
| Ffi_inline_const i -> Lam. const i
395
394
| Ffi_normal ->
@@ -455,9 +454,6 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) :
455
454
| Lprim (Prevapply, _ , _ , _ ) -> assert false
456
455
| Lprim (Pdirapply, _ , _ , _ ) -> assert false
457
456
| Lprim (Pccall a , args , loc , transformed_jsx ) ->
458
- Format. fprintf Format. err_formatter
459
- " lam convert Pccall Has transformed_jsx %b\n "
460
- (Option. is_some transformed_jsx);
461
457
convert_ccall ~transformed_jsx a args loc ~dynamic_import
462
458
| Lprim (Pjs_raw_expr, args , loc , _ ) -> (
463
459
match args with
0 commit comments