Skip to content

Commit 92db093

Browse files
committed
use fn_name
1 parent a77f2f1 commit 92db093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/syntax/src/jsx_v4.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
12461246
Lident
12471247
(match rec_flag with
12481248
| Recursive -> internal_fn_name
1249-
| Nonrecursive -> "make");
1249+
| Nonrecursive -> fn_name);
12501250
loc;
12511251
})
12521252
[(Nolabel, Exp.ident {txt = Lident "props"; loc})]))
@@ -1259,7 +1259,7 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
12591259
in
12601260

12611261
Vb.mk ~attrs:modified_binding.pvb_attributes
1262-
(Pat.var {txt = "make"; loc})
1262+
(Pat.var {txt = fn_name; loc})
12631263
internal_expression
12641264
in
12651265

0 commit comments

Comments
 (0)