File tree Expand file tree Collapse file tree 5 files changed +21
-1
lines changed Expand file tree Collapse file tree 5 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 3636- Fix missing checks for duplicate literals in variants with payloads. https://github.com/rescript-lang/rescript/pull/7441
3737- Fix printer removing private for empty record. https://github.com/rescript-lang/rescript/pull/7448
3838- 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
3940
4041#### :house : Internal
4142
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ let obj_property_no_need_quot s =
6868 ]}
6969*)
7070let property_access f s =
71+ let s = Ext_ident. unwrap_uppercase_exotic s in
7172 if obj_property_no_need_quot s then (
7273 P. string f L. dot;
7374 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>
147147function Jsx_preserve_test$MyWeirdComponent ( props ) {
148148 return < p >
149149 { "foo" }
150- { props [ "\\\" MyWeirdProp\"" ] }
150+ { props . MyWeirdProp }
151151 </ p > ;
152152}
153153
You can’t perform that action at this time.
0 commit comments