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

Unified Diff: sdk/lib/io/bytes_builder.dart

Issue 2100103002: Fix bug in BytesBuilder. Add tests. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 months 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
« no previous file with comments | « no previous file | tests/standalone/io/bytes_builder_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/bytes_builder.dart
diff --git a/sdk/lib/io/bytes_builder.dart b/sdk/lib/io/bytes_builder.dart
index 0c97748314e1b1604ab56175927a68b5cb83aacf..2dca39d0c181d7bb5752711219d700611b2c89b6 100644
--- a/sdk/lib/io/bytes_builder.dart
+++ b/sdk/lib/io/bytes_builder.dart
@@ -160,7 +160,7 @@ class _BytesBuilder implements BytesBuilder {
if (bytes is Uint8List) {
typedBytes = bytes;
} else {
- bytes = new Uint8List.fromList(bytes);
+ typedBytes = new Uint8List.fromList(bytes);
}
_chunks.add(typedBytes);
_length += typedBytes.length;
« no previous file with comments | « no previous file | tests/standalone/io/bytes_builder_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698