@@ -161926,7 +161926,7 @@ type loc_kind =
161926
161926
161927
161927
type record_repr =
161928
161928
| Record_regular
161929
- | Record_object
161929
+ | Record_optional
161930
161930
161931
161931
type tag_info =
161932
161932
| Blk_constructor of {name : string ; num_nonconst : int; tag : int}
@@ -162320,8 +162320,8 @@ type loc_kind =
162320
162320
| Loc_POS
162321
162321
162322
162322
type record_repr =
162323
- | Record_regular
162324
- | Record_object
162323
+ | Record_regular
162324
+ | Record_optional
162325
162325
162326
162326
type tag_info =
162327
162327
| Blk_constructor of {name : string ; num_nonconst : int ; tag : int }
@@ -238060,7 +238060,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
238060
238060
| Record_regular ->
238061
238061
expression_desc cxt ~level f
238062
238062
(Object (Ext_list.combine_array fields el (fun i -> Js_op.Lit i)))
238063
- | Record_object ->
238063
+ | Record_optional ->
238064
238064
let fields =
238065
238065
Ext_list.array_list_filter_map fields el (fun f x ->
238066
238066
match x.expression_desc with
@@ -273286,7 +273286,7 @@ and transl_record loc env fields repres opt_init_expr =
273286
273286
| Record_float_unused -> assert false
273287
273287
| Record_optional_labels _ ->
273288
273288
Lconst
273289
- (Const_block (!Lambda.blk_record fields mut Record_object , cl))
273289
+ (Const_block (!Lambda.blk_record fields mut Record_optional , cl))
273290
273290
| Record_regular ->
273291
273291
Lconst
273292
273292
(Const_block (!Lambda.blk_record fields mut Record_regular, cl))
@@ -273306,12 +273306,12 @@ and transl_record loc env fields repres opt_init_expr =
273306
273306
( Pmakeblock (!Lambda.blk_record fields mut Record_regular),
273307
273307
ll,
273308
273308
loc )
273309
- | Record_float_unused -> assert false
273310
273309
| Record_optional_labels _ ->
273311
273310
Lprim
273312
- ( Pmakeblock (!Lambda.blk_record fields mut Record_object ),
273311
+ ( Pmakeblock (!Lambda.blk_record fields mut Record_optional ),
273313
273312
ll,
273314
273313
loc )
273314
+ | Record_float_unused -> assert false
273315
273315
| Record_inlined { tag; name; num_nonconsts } ->
273316
273316
Lprim
273317
273317
( Pmakeblock
0 commit comments