Skip to content

Commit 8af7e39

Browse files
committed
fixup! Compiler: no longer rely on iife
1 parent ba2c673 commit 8af7e39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/lib/generate.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,8 +1445,8 @@ and translate_instrs (ctx : Ctx.t) expr_queue instr last =
14451445
match e with
14461446
(* FIXME: This pattern is too fragile *)
14471447
| J.Variable_statement
1448-
(Var, [ DeclIdent (x, Some (J.EFun (None, dcl), _loc)) ]) ->
1449-
J.Function_declaration (x, dcl), loc'
1448+
(Var, [ DeclIdent (x, Some (J.EFun (None, dcl), loc)) ]) ->
1449+
J.Function_declaration (x, dcl), loc
14501450
| _ -> e, loc')
14511451
in
14521452
List.append l_rev st_rev, expr_queue)

0 commit comments

Comments
 (0)