cdc29b23f0
Now all both sync and async methods on File and RandomAccessFile should have correct error handling. Changed readByte and readByteSync to return -1 instead of reporting an error when end of file is reached. It seems to make the most sense. The amount of boiler-plate code in both the native functions and native port functions in file.cc is growing. Maybe we should consider some refactoring, e.g. with a table of the expected argument types for each native port functions together with known position of the FILE* argument. R=ager@google.com BUG= TEST= Review URL: https://chromiumcodereview.appspot.com//9839053 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5812 260f80e4-7a28-3924-810f-c04153c831b5