Index: frog/leg/scanner/vm_scanner_bench.dart |
diff --git a/frog/leg/scanner/vm_scanner_bench.dart b/frog/leg/scanner/vm_scanner_bench.dart |
index 7404a91223d5c4e031a585d28c3246b9ee2eb6f1..c475e10d3c210fcbcd6c32512729093d64a1f7a7 100644 |
--- a/frog/leg/scanner/vm_scanner_bench.dart |
+++ b/frog/leg/scanner/vm_scanner_bench.dart |
@@ -11,8 +11,7 @@ |
class VmScannerBench extends ScannerBench { |
int getBytes(String filename, void callback(List<int> bytes)) { |
- File file = new File(filename); |
- file.openSync(); |
+ File file = (new File(filename)).openSync(); |
int size = file.lengthSync(); |
List<int> bytes = new List<int>(size + 1); |
file.readListSync(bytes, 0, size); |