Skip to content

Commit

Permalink
fixup! Compiler: no longer rely on iife
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Dec 19, 2023
1 parent ba2c673 commit 8af7e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/lib/generate.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1445,8 +1445,8 @@ and translate_instrs (ctx : Ctx.t) expr_queue instr last =
match e with
(* FIXME: This pattern is too fragile *)
| J.Variable_statement
(Var, [ DeclIdent (x, Some (J.EFun (None, dcl), _loc)) ]) ->
J.Function_declaration (x, dcl), loc'
(Var, [ DeclIdent (x, Some (J.EFun (None, dcl), loc)) ]) ->
J.Function_declaration (x, dcl), loc
| _ -> e, loc')
in
List.append l_rev st_rev, expr_queue)
Expand Down

0 comments on commit 8af7e39

Please sign in to comment.