Index: sdk/lib/_internal/compiler/implementation/lib/string_helper.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/lib/string_helper.dart (revision 18614) |
+++ sdk/lib/_internal/compiler/implementation/lib/string_helper.dart (working copy) |
@@ -77,7 +77,7 @@ |
return JS('String', r'#.replace(#, #)', receiver, replacer, to); |
} |
-final RegExp quoteRegExp = new JSSyntaxRegExp(r'[-[\]{}()*+?.,\\^$|#\s]'); |
+final RegExp quoteRegExp = const JSSyntaxRegExp(r'[-[\]{}()*+?.,\\^$|#\s]'); |
stringReplaceAllUnchecked(receiver, from, to) { |
checkString(to); |