@@ -373,7 +373,7 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) :
373373 let exit_map = Hash_int. create 0 in
374374 let may_depends = Lam_module_ident.Hash_set. create 0 in
375375
376- let rec convert_ccall ?(transformed_jsx = None )
376+ let rec convert_ccall ?(transformed_jsx = false )
377377 (a_prim : Primitive.description ) (args : Lambda.lambda list ) loc
378378 ~dynamic_import : Lam. t =
379379 let prim_name = a_prim.prim_name in
@@ -382,14 +382,13 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) :
382382 let args = Ext_list. map args convert_aux in
383383 prim ~primitive: (Pjs_object_create labels) ~args loc
384384 | Ffi_bs (arg_types , result_type , ffi ) ->
385- Format. fprintf Format. err_formatter " Ffi_bs\n " ;
386385 let arg_types =
387386 match arg_types with
388387 | Params ls -> ls
389388 | Param_number i -> Ext_list. init i (fun _ -> External_arg_spec. dummy)
390389 in
391390 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
393392 loc prim_name ~dynamic_import
394393 | Ffi_inline_const i -> Lam. const i
395394 | Ffi_normal ->
@@ -455,9 +454,6 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) :
455454 | Lprim (Prevapply, _ , _ , _ ) -> assert false
456455 | Lprim (Pdirapply, _ , _ , _ ) -> assert false
457456 | 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);
461457 convert_ccall ~transformed_jsx a args loc ~dynamic_import
462458 | Lprim (Pjs_raw_expr, args , loc , _ ) -> (
463459 match args with
0 commit comments