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 =
757757 (if ! Js_config. debug then [ (name_symbol, E. str p.name) ] else [] )
758758 (fun i -> Js_op. Lit i)
759759 in
760- let is_optional (names : string list ) ( pname : Js_op.property_name ) =
760+ let is_optional (pname : Js_op.property_name ) =
761761 match pname with
762- | Lit n -> Ext_list. mem_string names n
762+ | Lit n -> Ext_list. mem_string p.optional_labels n
763763 | Symbol_name -> false
764764 in
765765 let tails =
@@ -768,7 +768,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
768768 | _ ->
769769 Ext_list. filter_map tails (fun (f , x ) ->
770770 match x.expression_desc with
771- | Undefined when is_optional p.optional_labels f -> None
771+ | Undefined when is_optional f -> None
772772 | _ -> Some (f, x))
773773 in
774774 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 =
8174081740 (if !Js_config.debug then [ (name_symbol, E.str p.name) ] else [])
8174181741 (fun i -> Js_op.Lit i)
8174281742 in
81743- let is_optional (names: string list) ( pname: Js_op.property_name) =
81743+ let is_optional (pname: Js_op.property_name) =
8174481744 match pname with
81745- | Lit n -> Ext_list.mem_string names n
81745+ | Lit n -> Ext_list.mem_string p.optional_labels n
8174681746 | Symbol_name -> false
8174781747 in
8174881748 let tails =
@@ -81751,7 +81751,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
8175181751 | _ ->
8175281752 Ext_list.filter_map tails (fun (f, x) ->
8175381753 match x.expression_desc with
81754- | Undefined when is_optional p.optional_labels f -> None
81754+ | Undefined when is_optional f -> None
8175581755 | _ -> Some (f, x))
8175681756 in
8175781757 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 =
8174081740 (if !Js_config.debug then [ (name_symbol, E.str p.name) ] else [])
8174181741 (fun i -> Js_op.Lit i)
8174281742 in
81743- let is_optional (names: string list) ( pname: Js_op.property_name) =
81743+ let is_optional (pname: Js_op.property_name) =
8174481744 match pname with
81745- | Lit n -> Ext_list.mem_string names n
81745+ | Lit n -> Ext_list.mem_string p.optional_labels n
8174681746 | Symbol_name -> false
8174781747 in
8174881748 let tails =
@@ -81751,7 +81751,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
8175181751 | _ ->
8175281752 Ext_list.filter_map tails (fun (f, x) ->
8175381753 match x.expression_desc with
81754- | Undefined when is_optional p.optional_labels f -> None
81754+ | Undefined when is_optional f -> None
8175581755 | _ -> Some (f, x))
8175681756 in
8175781757 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 =
257572257572 (if !Js_config.debug then [ (name_symbol, E.str p.name) ] else [])
257573257573 (fun i -> Js_op.Lit i)
257574257574 in
257575- let is_optional (names: string list) ( pname: Js_op.property_name) =
257575+ let is_optional (pname: Js_op.property_name) =
257576257576 match pname with
257577- | Lit n -> Ext_list.mem_string names n
257577+ | Lit n -> Ext_list.mem_string p.optional_labels n
257578257578 | Symbol_name -> false
257579257579 in
257580257580 let tails =
@@ -257583,7 +257583,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
257583257583 | _ ->
257584257584 Ext_list.filter_map tails (fun (f, x) ->
257585257585 match x.expression_desc with
257586- | Undefined when is_optional p.optional_labels f -> None
257586+ | Undefined when is_optional f -> None
257587257587 | _ -> Some (f, x))
257588257588 in
257589257589 if p.num_nonconst = 1 then tails
You can’t perform that action at this time.
0 commit comments