Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/lib/string_helper.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart |
| index 3a35778c677a431b508c26c8ed97d583c9c8b487..cc99a1cbd632c548c4700f87065405b19e7f1c5a 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/lib/string_helper.dart |
| @@ -92,7 +92,7 @@ stringReplaceAllUnchecked(receiver, from, to) { |
| } |
| } else { |
| RegExp quoteRegExp = |
| - const JSSyntaxRegExp(r'[-[\]{}()*+?.,\\^$|#\s]'); |
| + new JSSyntaxRegExp(r'[-[\]{}()*+?.,\\^$|#\s]'); |
|
ahe
2012/11/12 13:35:03
Top-level final field?
Anders Johnsen
2012/11/12 13:45:38
Done.
|
| var quoter = regExpMakeNative(quoteRegExp, global: true); |
| var quoted = JS('String', r'#.replace(#, "\\$&")', from, quoter); |
| RegExp replaceRegExp = new JSSyntaxRegExp(quoted); |