Index: sdk/lib/io/file_impl.dart |
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart |
index 83952b17ee5a6e747c0fe877ca6cc8fa171cb272..d40840cb19b14682e299a9d4d067a760a4d7f2c3 100644 |
--- a/sdk/lib/io/file_impl.dart |
+++ b/sdk/lib/io/file_impl.dart |
@@ -813,7 +813,9 @@ class _RandomAccessFile extends _FileBase implements RandomAccessFile { |
Future<RandomAccessFile> writeList(List<int> buffer, int offset, int bytes) { |
_ensureFileService(); |
Completer<RandomAccessFile> completer = new Completer<RandomAccessFile>(); |
- if (buffer is !List || offset is !int || bytes is !int) { |
+ if ((buffer is !List && buffer is !ByteData) || |
Anders Johnsen
2013/04/15 15:46:17
DBC: I believe this is wrong. We should not suppor
|
+ offset is !int || |
+ bytes is !int) { |
// Complete asynchronously so the user has a chance to setup |
// handlers without getting exceptions when registering the |
// then handler. |