File tree 5 files changed +21
-1
lines changed
5 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 36
36
- Fix missing checks for duplicate literals in variants with payloads. https://github.com/rescript-lang/rescript/pull/7441
37
37
- Fix printer removing private for empty record. https://github.com/rescript-lang/rescript/pull/7448
38
38
- Fix: handle dynamic imports with module aliases. https://github.com/rescript-lang/rescript/pull/7452
39
+ - Fix missing unescaping when accessing prop with exotic name. https://github.com/rescript-lang/rescript/pull/7469
39
40
40
41
#### :house : Internal
41
42
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ let obj_property_no_need_quot s =
68
68
]}
69
69
*)
70
70
let property_access f s =
71
+ let s = Ext_ident. unwrap_uppercase_exotic s in
71
72
if obj_property_no_need_quot s then (
72
73
P. string f L. dot;
73
74
P. string f s)
Original file line number Diff line number Diff line change
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+
4
+ let x = {
5
+ MyWeirdProp : Math . random ( )
6
+ } ;
7
+
8
+ console . log ( x . MyWeirdProp ) ;
9
+
10
+ export {
11
+ x ,
12
+ }
13
+ /* x Not a pure module */
Original file line number Diff line number Diff line change
1
+ type props = {\"MyWeirdProp" : float }
2
+
3
+ let x = {\"MyWeirdProp" : Math .random ()}
4
+
5
+ Console .log (x .\"MyWeirdProp" )
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ let _external_component_with_children = <QueryClientProvider>
147
147
function Jsx_preserve_test$MyWeirdComponent ( props ) {
148
148
return < p >
149
149
{ "foo" }
150
- { props [ "\\\" MyWeirdProp\"" ] }
150
+ { props . MyWeirdProp }
151
151
</ p > ;
152
152
}
153
153
You can’t perform that action at this time.
0 commit comments