Skip to content

Commit 3ed1757

Browse files
committed
Fix unnecessary variables generated for partial application with strings.
Fixes #5489
1 parent 1a6337c commit 3ed1757

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

jscomp/core/lam_eta_conversion.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let transform_under_supply n ap_info fn args =
4242
match lam with
4343
| Lvar _
4444
| Lconst
45-
( Const_int _ | Const_char _ | Const_string _ | Const_float _
45+
( Const_int _ | Const_char _ | Const_string _ | Const_unicode _ | Const_float _
4646
| Const_int64 _ | Const_pointer _ | Const_js_true | Const_js_false
4747
| Const_js_undefined )
4848
| Lprim { primitive = Pfield (_, Fld_module _); _ }

lib/4.06.1/unstable/js_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87092,7 +87092,7 @@ let transform_under_supply n ap_info fn args =
8709287092
match lam with
8709387093
| Lvar _
8709487094
| Lconst
87095-
( Const_int _ | Const_char _ | Const_string _ | Const_float _
87095+
( Const_int _ | Const_char _ | Const_string _ | Const_unicode _ | Const_float _
8709687096
| Const_int64 _ | Const_pointer _ | Const_js_true | Const_js_false
8709787097
| Const_js_undefined )
8709887098
| Lprim { primitive = Pfield (_, Fld_module _); _ }

lib/4.06.1/unstable/js_playground_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87092,7 +87092,7 @@ let transform_under_supply n ap_info fn args =
8709287092
match lam with
8709387093
| Lvar _
8709487094
| Lconst
87095-
( Const_int _ | Const_char _ | Const_string _ | Const_float _
87095+
( Const_int _ | Const_char _ | Const_string _ | Const_unicode _ | Const_float _
8709687096
| Const_int64 _ | Const_pointer _ | Const_js_true | Const_js_false
8709787097
| Const_js_undefined )
8709887098
| Lprim { primitive = Pfield (_, Fld_module _); _ }

lib/4.06.1/whole_compiler.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248593,7 +248593,7 @@ let transform_under_supply n ap_info fn args =
248593248593
match lam with
248594248594
| Lvar _
248595248595
| Lconst
248596-
( Const_int _ | Const_char _ | Const_string _ | Const_float _
248596+
( Const_int _ | Const_char _ | Const_string _ | Const_unicode _ | Const_float _
248597248597
| Const_int64 _ | Const_pointer _ | Const_js_true | Const_js_false
248598248598
| Const_js_undefined )
248599248599
| Lprim { primitive = Pfield (_, Fld_module _); _ }

0 commit comments

Comments
 (0)