| Index: sdk/lib/_internal/compiler/js_lib/core_patch.dart
|
| diff --git a/sdk/lib/_internal/compiler/js_lib/core_patch.dart b/sdk/lib/_internal/compiler/js_lib/core_patch.dart
|
| index f7d0036f557c7c52a2663b9ec74b5e52be463be8..9f5bf1c562b4bdb01baf7416bbc97039de720deb 100644
|
| --- a/sdk/lib/_internal/compiler/js_lib/core_patch.dart
|
| +++ b/sdk/lib/_internal/compiler/js_lib/core_patch.dart
|
| @@ -363,16 +363,10 @@ bool identical(Object a, Object b) {
|
|
|
| @patch
|
| class StringBuffer {
|
| - String _contents = "";
|
| + String _contents;
|
|
|
| @patch
|
| - StringBuffer([Object content = ""]) {
|
| - if (content is String) {
|
| - _contents = content;
|
| - } else {
|
| - write(content);
|
| - }
|
| - }
|
| + StringBuffer([Object content = ""]) : _contents = '$content';
|
|
|
| @patch
|
| int get length => _contents.length;
|
|
|