Chromium Code Reviews| Index: runtime/lib/string_patch.dart |
| diff --git a/runtime/lib/string_patch.dart b/runtime/lib/string_patch.dart |
| index 3ac78a8fd9404faa5724cd771666eb61053110d5..cff1c5ef4b8b735c960eac10b4128d6ce366a35a 100644 |
| --- a/runtime/lib/string_patch.dart |
| +++ b/runtime/lib/string_patch.dart |
| @@ -518,6 +518,14 @@ class _StringBase { |
| return buffer.toString(); |
| } |
| + // Convert single object to string. |
| + static String _interpolateSingle(final Object o) { |
|
Florian Schneider
2014/09/12 10:33:37
final is not really necessary here.
Lasse Reichstein Nielsen
2014/09/12 12:49:38
Done.
|
| + final s = o.toString(); |
| + if (s is! String) { |
| + throw new ArgumentError(o); |
| + } |
| + return s; |
| + } |
| /** |
| * Convert all objects in [values] to strings and concat them |