Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(827)

Unified Diff: runtime/bin/file_impl.dart

Issue 10536112: Add missing closed check to random access file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/io/file_error_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_impl.dart
diff --git a/runtime/bin/file_impl.dart b/runtime/bin/file_impl.dart
index 53896eb1ca56564900ed950669c2c1178d441d78..9e9b6340a52667c997180b6d7d5a774f53dcbb44 100644
--- a/runtime/bin/file_impl.dart
+++ b/runtime/bin/file_impl.dart
@@ -731,6 +731,7 @@ class _RandomAccessFile extends _FileBase implements RandomAccessFile {
}
void closeSync() {
+ _checkNotClosed();
var id = _FileUtils.close(_id);
if (id == -1) {
throw new FileIOException("Cannot close file '$_name'");
« no previous file with comments | « no previous file | tests/standalone/io/file_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698