Index: frog/file_system_vm.dart |
diff --git a/frog/file_system_vm.dart b/frog/file_system_vm.dart |
index 306fcd3214f137d12e7a0eb7f350ad45f09ebb47..3471fb0cb14ff32c3035b43310c5bbbdfea8ae26 100644 |
--- a/frog/file_system_vm.dart |
+++ b/frog/file_system_vm.dart |
@@ -15,8 +15,7 @@ class VMFileSystem implements FileSystem { |
} |
String readAll(String filename) { |
- var file = new File(filename); |
- file.openSync(); |
+ var file = (new File(filename)).openSync(); |
var length = file.lengthSync(); |
var buffer = new List<int>(length); |
var bytes = file.readListSync(buffer, 0, length); |