File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 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 @@ -81740,9 +81740,9 @@ and expression_desc cxt ~(level : int) f x : cxt =
81740
81740
(if !Js_config.debug then [ (name_symbol, E.str p.name) ] else [])
81741
81741
(fun i -> Js_op.Lit i)
81742
81742
in
81743
- let is_optional (names: string list) ( pname: Js_op.property_name) =
81743
+ let is_optional (pname: Js_op.property_name) =
81744
81744
match pname with
81745
- | Lit n -> Ext_list.mem_string names n
81745
+ | Lit n -> Ext_list.mem_string p.optional_labels n
81746
81746
| Symbol_name -> false
81747
81747
in
81748
81748
let tails =
@@ -81751,7 +81751,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
81751
81751
| _ ->
81752
81752
Ext_list.filter_map tails (fun (f, x) ->
81753
81753
match x.expression_desc with
81754
- | Undefined when is_optional p.optional_labels f -> None
81754
+ | Undefined when is_optional f -> None
81755
81755
| _ -> Some (f, x))
81756
81756
in
81757
81757
if p.num_nonconst = 1 then tails
Original file line number Diff line number Diff line change @@ -81740,9 +81740,9 @@ and expression_desc cxt ~(level : int) f x : cxt =
81740
81740
(if !Js_config.debug then [ (name_symbol, E.str p.name) ] else [])
81741
81741
(fun i -> Js_op.Lit i)
81742
81742
in
81743
- let is_optional (names: string list) ( pname: Js_op.property_name) =
81743
+ let is_optional (pname: Js_op.property_name) =
81744
81744
match pname with
81745
- | Lit n -> Ext_list.mem_string names n
81745
+ | Lit n -> Ext_list.mem_string p.optional_labels n
81746
81746
| Symbol_name -> false
81747
81747
in
81748
81748
let tails =
@@ -81751,7 +81751,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
81751
81751
| _ ->
81752
81752
Ext_list.filter_map tails (fun (f, x) ->
81753
81753
match x.expression_desc with
81754
- | Undefined when is_optional p.optional_labels f -> None
81754
+ | Undefined when is_optional f -> None
81755
81755
| _ -> Some (f, x))
81756
81756
in
81757
81757
if p.num_nonconst = 1 then tails
Original file line number Diff line number Diff line change @@ -257572,9 +257572,9 @@ and expression_desc cxt ~(level : int) f x : cxt =
257572
257572
(if !Js_config.debug then [ (name_symbol, E.str p.name) ] else [])
257573
257573
(fun i -> Js_op.Lit i)
257574
257574
in
257575
- let is_optional (names: string list) ( pname: Js_op.property_name) =
257575
+ let is_optional (pname: Js_op.property_name) =
257576
257576
match pname with
257577
- | Lit n -> Ext_list.mem_string names n
257577
+ | Lit n -> Ext_list.mem_string p.optional_labels n
257578
257578
| Symbol_name -> false
257579
257579
in
257580
257580
let tails =
@@ -257583,7 +257583,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
257583
257583
| _ ->
257584
257584
Ext_list.filter_map tails (fun (f, x) ->
257585
257585
match x.expression_desc with
257586
- | Undefined when is_optional p.optional_labels f -> None
257586
+ | Undefined when is_optional f -> None
257587
257587
| _ -> Some (f, x))
257588
257588
in
257589
257589
if p.num_nonconst = 1 then tails
You can’t perform that action at this time.
0 commit comments