File tree 4 files changed +12
-12
lines changed
4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -757,9 +757,9 @@ and expression_desc cxt ~(level : int) f x : cxt =
757
757
(if ! Js_config. debug then [ (name_symbol, E. str p.name) ] else [] )
758
758
(fun i -> Js_op. Lit i)
759
759
in
760
- let is_optional (names : string list ) ( pname : Js_op.property_name ) =
760
+ let is_optional (pname : Js_op.property_name ) =
761
761
match pname with
762
- | Lit n -> Ext_list. mem_string names n
762
+ | Lit n -> Ext_list. mem_string p.optional_labels n
763
763
| Symbol_name -> false
764
764
in
765
765
let tails =
@@ -768,7 +768,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
768
768
| _ ->
769
769
Ext_list. filter_map tails (fun (f , x ) ->
770
770
match x.expression_desc with
771
- | Undefined when is_optional p.optional_labels f -> None
771
+ | Undefined when is_optional f -> None
772
772
| _ -> Some (f, x))
773
773
in
774
774
if p.num_nonconst = 1 then tails
Original file line number Diff line number Diff line change @@ -81688,9 +81688,9 @@ and expression_desc cxt ~(level : int) f x : cxt =
81688
81688
(if !Js_config.debug then [ (name_symbol, E.str p.name) ] else [])
81689
81689
(fun i -> Js_op.Lit i)
81690
81690
in
81691
- let is_optional (names: string list) ( pname: Js_op.property_name) =
81691
+ let is_optional (pname: Js_op.property_name) =
81692
81692
match pname with
81693
- | Lit n -> Ext_list.mem_string names n
81693
+ | Lit n -> Ext_list.mem_string p.optional_labels n
81694
81694
| Symbol_name -> false
81695
81695
in
81696
81696
let tails =
@@ -81699,7 +81699,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
81699
81699
| _ ->
81700
81700
Ext_list.filter_map tails (fun (f, x) ->
81701
81701
match x.expression_desc with
81702
- | Undefined when is_optional p.optional_labels f -> None
81702
+ | Undefined when is_optional f -> None
81703
81703
| _ -> Some (f, x))
81704
81704
in
81705
81705
if p.num_nonconst = 1 then tails
Original file line number Diff line number Diff line change @@ -81688,9 +81688,9 @@ and expression_desc cxt ~(level : int) f x : cxt =
81688
81688
(if !Js_config.debug then [ (name_symbol, E.str p.name) ] else [])
81689
81689
(fun i -> Js_op.Lit i)
81690
81690
in
81691
- let is_optional (names: string list) ( pname: Js_op.property_name) =
81691
+ let is_optional (pname: Js_op.property_name) =
81692
81692
match pname with
81693
- | Lit n -> Ext_list.mem_string names n
81693
+ | Lit n -> Ext_list.mem_string p.optional_labels n
81694
81694
| Symbol_name -> false
81695
81695
in
81696
81696
let tails =
@@ -81699,7 +81699,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
81699
81699
| _ ->
81700
81700
Ext_list.filter_map tails (fun (f, x) ->
81701
81701
match x.expression_desc with
81702
- | Undefined when is_optional p.optional_labels f -> None
81702
+ | Undefined when is_optional f -> None
81703
81703
| _ -> Some (f, x))
81704
81704
in
81705
81705
if p.num_nonconst = 1 then tails
Original file line number Diff line number Diff line change @@ -136557,9 +136557,9 @@ and expression_desc cxt ~(level : int) f x : cxt =
136557
136557
(if !Js_config.debug then [ (name_symbol, E.str p.name) ] else [])
136558
136558
(fun i -> Js_op.Lit i)
136559
136559
in
136560
- let is_optional (names: string list) ( pname: Js_op.property_name) =
136560
+ let is_optional (pname: Js_op.property_name) =
136561
136561
match pname with
136562
- | Lit n -> Ext_list.mem_string names n
136562
+ | Lit n -> Ext_list.mem_string p.optional_labels n
136563
136563
| Symbol_name -> false
136564
136564
in
136565
136565
let tails =
@@ -136568,7 +136568,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
136568
136568
| _ ->
136569
136569
Ext_list.filter_map tails (fun (f, x) ->
136570
136570
match x.expression_desc with
136571
- | Undefined when is_optional p.optional_labels f -> None
136571
+ | Undefined when is_optional f -> None
136572
136572
| _ -> Some (f, x))
136573
136573
in
136574
136574
if p.num_nonconst = 1 then tails
You can’t perform that action at this time.
0 commit comments