Skip to content

Commit 4fcdb9f

Browse files
committed
tweak
1 parent be289e2 commit 4fcdb9f

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

jscomp/core/lam_primitive.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type t =
4949
{ prim_name : string ;
5050
arg_types : External_arg_spec.t list ;
5151
ffi : External_ffi_types.external_spec }
52-
| Pjs_object_create of External_ffi_types.obj_create
52+
| Pjs_object_create of External_arg_spec.t list
5353
(* Exceptions *)
5454
| Praise
5555
(* Boolean operations *)

jscomp/core/lam_primitive.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type t =
4848
{ prim_name : string;
4949
arg_types : External_arg_spec.t list ;
5050
ffi : External_ffi_types.external_spec}
51-
| Pjs_object_create of External_ffi_types.obj_create
51+
| Pjs_object_create of External_arg_spec.t list
5252

5353
| Praise
5454
| Psequand | Psequor | Pnot

jscomp/syntax/external_ffi_types.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ type arg_type = External_arg_spec.attr
4444
type arg_label = External_arg_spec.label
4545

4646

47-
(**TODO: maybe we can merge [arg_label] and [arg_type] *)
48-
type obj_create = External_arg_spec.t list
4947

5048
type external_spec =
5149
| Js_var of {
@@ -128,7 +126,7 @@ type t =
128126
[return] means return value is unit or not,
129127
[true] means is [unit]
130128
*)
131-
| Ffi_obj_create of obj_create
129+
| Ffi_obj_create of External_arg_spec.t list
132130
| Ffi_inline_const of Lam_constant.t
133131
| Ffi_normal
134132
(* When it's normal, it is handled as normal c functional ffi call *)

jscomp/syntax/external_ffi_types.mli

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ type arg_type = External_arg_spec.attr
4545
type arg_label = External_arg_spec.label
4646

4747

48-
type obj_create = External_arg_spec.t list
49-
50-
51-
5248

5349

5450

@@ -109,7 +105,7 @@ type t =
109105
External_arg_spec.t list *
110106
return_wrapper *
111107
external_spec
112-
| Ffi_obj_create of obj_create
108+
| Ffi_obj_create of External_arg_spec.t list
113109
| Ffi_inline_const of Lam_constant.t
114110
| Ffi_normal
115111
(* When it's normal, it is handled as normal c functional ffi call *)

0 commit comments

Comments
 (0)