Skip to content

Commit

Permalink
Update for extlib 1.7.8 breaking change (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jan 22, 2021
1 parent d764121 commit 090d93b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/context/common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ let get_entry_point com =
let c =
match m.m_statics with
| Some c when (PMap.mem "main" c.cl_statics) -> c
| _ -> ExtList.List.find_map (fun t -> match t with TClassDecl c when c.cl_path = path -> Some c | _ -> None) m.m_types
| _ -> Option.get (ExtList.List.find_map (fun t -> match t with TClassDecl c when c.cl_path = path -> Some c | _ -> None) m.m_types)
in
let e = Option.get com.main in (* must be present at this point *)
(snd path, c, e)
Expand Down
4 changes: 2 additions & 2 deletions src/optimization/inline.ml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ let api_inline ctx c field params p =
let mk_typeexpr path =
let m = (try Hashtbl.find ctx.g.modules path with Not_found -> die "" __LOC__) in
add_dependency ctx.m.curmod m;
ExtList.List.find_map (function
Option.get (ExtList.List.find_map (function
| TClassDecl cl when cl.cl_path = path -> Some (make_static_this cl p)
| _ -> None
) m.m_types
) m.m_types)
in

let eJsSyntax () = mk_typeexpr (["js"],"Syntax") in
Expand Down

0 comments on commit 090d93b

Please sign in to comment.