Commit 740c0bb 1 parent af19385 commit 740c0bb Copy full SHA for 740c0bb
File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -742,9 +742,10 @@ impl Pure<'_> {
742
742
} ;
743
743
744
744
self . changed = true ;
745
- report_change ! ( "evaluate: Evaluated `{}` of a string literal" , method ) ;
745
+ report_change ! ( "evaluate: Evaluated `{method }` of a string literal" ) ;
746
746
* e = Expr :: Lit ( Lit :: Str ( Str {
747
747
value : new_val. into ( ) ,
748
+ raw : None ,
748
749
..s
749
750
} ) ) ;
750
751
}
Original file line number Diff line number Diff line change @@ -11193,3 +11193,22 @@ fn issue_8246_1() {
11193
11193
false ,
11194
11194
) ;
11195
11195
}
11196
+
11197
+ #[ test]
11198
+ fn issue_8864_1 ( ) {
11199
+ run_default_exec_test (
11200
+ "
11201
+ class Renderer {
11202
+ renderStaticFrame(string1, string2) {
11203
+ const line1Text = `${string1} and ${string2}`.toUpperCase();
11204
+ const line2Text = 'line 2 text'.toUpperCase();
11205
+
11206
+ const text = `${line1Text}\n ${line2Text}`;
11207
+ return text;
11208
+ }
11209
+ }
11210
+
11211
+ console.log(new Renderer().renderStaticFrame('a', 'b'));
11212
+ " ,
11213
+ )
11214
+ }
You can’t perform that action at this time.
0 commit comments