Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Unified Diff: test/codegen/misc.dart

Issue 1426243002: fix #379, escape of $ in template strings (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/src/js/builder.dart ('K') | « test/codegen/expect/misc.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/misc.dart
diff --git a/test/codegen/misc.dart b/test/codegen/misc.dart
index f40d220304fd42565de717dbf9e7046c52438eba..ac7bdd0d7ecf0220b60c90cb075fc8778e58535c 100644
--- a/test/codegen/misc.dart
+++ b/test/codegen/misc.dart
@@ -31,6 +31,7 @@ class Derived {
bool _isWhitespace(String ch) =>
ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t';
+const expr = 'foo';
const _escapeMap = const {
'\n': r'\n',
'\r': r'\r',
@@ -39,6 +40,7 @@ const _escapeMap = const {
'\t': r'\t',
'\v': r'\v',
'\x7F': r'\x7F', // delete
+ '\${${expr}}': ''
};
« lib/src/js/builder.dart ('K') | « test/codegen/expect/misc.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698