Index: utils/lib/file_system_vm.dart |
diff --git a/utils/lib/file_system_vm.dart b/utils/lib/file_system_vm.dart |
index 7c09b7014e012f8c35487ae0c651bece05feaee6..d84d08148c9bc6332945d278f19215b91a300949 100644 |
--- a/utils/lib/file_system_vm.dart |
+++ b/utils/lib/file_system_vm.dart |
@@ -21,7 +21,7 @@ class VMFileSystem implements FileSystem { |
var file = (new File(filename)).openSync(); |
var length = file.lengthSync(); |
var buffer = new List<int>(length); |
- var bytes = file.readListSync(buffer, 0, length); |
+ var bytes = file.readIntoSync(buffer, 0, length); |
file.closeSync(); |
return new String.fromCharCodes(new Utf8Decoder(buffer).decodeRest()); |
} |