Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
zth committed Aug 30, 2024
1 parent 1d3154d commit 58f541e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jscomp/ml/translcore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ let extract_directive_for_fn exp =
exp.exp_attributes |> List.find_map (
fun ({txt}, payload) -> if txt = "directive" then Ast_payload.is_single_string payload else None)

let args_elgible_for_dict_inlining (args : expression list) =
let args_eligible_for_dict_inlining (args : expression list) =
args
|> List.find_opt (fun (arg : expression) ->
match arg.exp_desc with
Expand Down Expand Up @@ -818,7 +818,7 @@ and transl_exp0 (e : Typedtree.expression) : Lambda.lambda =
_ );
},
[(_lbl, Some {exp_desc = Texp_array args})] )
when Ident.name module_name = "Js" && args_elgible_for_dict_inlining args ->
when Ident.name module_name = "Js" && args_eligible_for_dict_inlining args ->
let fields = Array.make (List.length args) "" in
let args =
args
Expand Down

0 comments on commit 58f541e

Please sign in to comment.